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