instance method
app_name
Ruby on Rails 3.1.12
Since v3.1.12 PrivateSignature
app_name(app)
No documentation comment.
Parameters
-
appreq
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 441
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).gsub("/", "_")
end
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 441
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Base