Permalink
Browse files

app should always be a class (I suppose)

  • Loading branch information...
1 parent 832d2c4 commit d66536d7d478c47d3b47f4a9aee892e2881c7d64 @tenderlove tenderlove committed Jul 16, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -610,7 +610,7 @@ def app_name(app)
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

0 comments on commit d66536d

Please sign in to comment.