Skip to content

Commit

Permalink
app should always be a class (I suppose)
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jul 16, 2014
1 parent 832d2c4 commit d66536d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/routing/mapper.rb
Expand Up @@ -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
Expand Down

0 comments on commit d66536d

Please sign in to comment.