diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-16 15:08:55 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-16 15:08:55 -0700 |
commit | d66536d7d478c47d3b47f4a9aee892e2881c7d64 (patch) | |
tree | 28a31ea8702e3b951d4c2ee582a9022cd925142d /actionpack | |
parent | 832d2c40df31db7dd6b679b85644089518810638 (diff) | |
download | rails-d66536d7d478c47d3b47f4a9aee892e2881c7d64.tar.gz rails-d66536d7d478c47d3b47f4a9aee892e2881c7d64.tar.bz2 rails-d66536d7d478c47d3b47f4a9aee892e2881c7d64.zip |
app should always be a class (I suppose)
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index e77f6286ea..1fe5cce6a8 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -610,7 +610,7 @@ module ActionDispatch if app.respond_to?(:railtie_name) app.railtie_name else - class_name = app.is_a?(Class) ? app.name : app.class.name + class_name = app.name ActiveSupport::Inflector.underscore(class_name).tr("/", "_") end end |