Permalink
Browse files

classify is for plural table names only.

  • Loading branch information...
bbenezech committed Sep 15, 2011
1 parent 2233618 commit 1c99efce95c847a37e884f0fe3d875ff40332a6d
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rails_admin/abstract_model.rb
@@ -18,7 +18,7 @@ def self.all_models
possible_models = RailsAdmin::Config.included_models.map(&:to_s).presence || ([Rails.application] + Rails::Application::Railties.engines).map do |app|
(app.paths['app/models'] + app.config.autoload_paths).map do |path|
Dir.glob(app.root.join(path, "**/*.rb")).map do |filename|
- lchomp(filename, "#{app.root.join(path)}/").chomp('.rb').classify # app/models/module/class.rb => module/class.rb => module/class => Module::Class
+ lchomp(filename, "#{app.root.join(path)}/").chomp('.rb').camelize # app/models/module/class.rb => module/class.rb => module/class => Module::Class
end
end
end.flatten

0 comments on commit 1c99efc

Please sign in to comment.