instance method
short_identifier
Ruby on Rails 6.0.6
Since v6.0.6Signature
short_identifier()
No documentation comment.
Source
# File actionview/lib/action_view/template.rb, line 195
def short_identifier
@short_identifier ||= defined?(Rails.root) ? identifier.sub("#{Rails.root}/", "") : identifier
end
Defined in actionview/lib/action_view/template.rb line 195
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Template