method
app_name
v3.1.0 -
Show latest stable
-
0 notes -
Class: ActionDispatch::Routing::Mapper::Base
- 1.0.0
- 1.1.0
- 1.1.1
- 1.1.6
- 1.2.0
- 1.2.6
- 2.0.0
- 2.0.1
- 2.0.3
- 2.1.0
- 2.2.1
- 2.3.2
- 2.3.8
- 3.0.0
- 3.0.5
- 3.0.7
- 3.0.9
- 3.1.0 (0)
- 3.2.1 (0)
- 3.2.3 (0)
- 3.2.8 (0)
- 3.2.13 (0)
- What's this?
app_name(app)
private
Hide source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 439 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


