123456789_123456789_123456789_123456789_123456789_

Module: ActionView::LogSubscriber::Utils

Do not use. This module is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: actionview/lib/action_view/log_subscriber.rb

Instance Method Summary

Instance Method Details

#from_rails_root(string) (private)

[ GitHub ]

  
# File 'actionview/lib/action_view/log_subscriber.rb', line 63

def from_rails_root(string)
  string = string.sub(rails_root, "")
  string.sub!(VIEWS_PATTERN, "")
  string
end

#logger

[ GitHub ]

  
# File 'actionview/lib/action_view/log_subscriber.rb', line 58

def logger
  ActionView::Base.logger
end

#rails_root (private)

[ GitHub ]

  
# File 'actionview/lib/action_view/log_subscriber.rb', line 69

def rails_root # :doc:
  @root ||= "#{Rails.root}/"
end