instance method
app_name
Ruby on Rails 4.0.13
Since v3.1.12 PrivateSignature
app_name(app)
No documentation comment.
Parameters
-
appreq
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 549
def app_name(app)
return unless app.respond_to?(:routes)
if app.respond_to?(:railtie_name)
app.railtie_name
else
class_name = app.class.is_a?(Class) ? app.name : app.class.name
ActiveSupport::Inflector.underscore(class_name).tr("/", "_")
end
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 549
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Base