Permalink
Browse files

Path changes due to new Rails 3.2 routing engine.

  • Loading branch information...
1 parent cd379d9 commit f95dc59c63ae1037f651c7188ab2a3e2554c5ce3 Paul Strong committed Feb 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rails_admin/abstract_model.rb
@@ -13,7 +13,7 @@ def self.all
excluded_models << ['History']
# orig regexp -- found 'class' even if it's within a comment or a quote
- filenames = Dir.glob(Rails.application.paths.app.models.collect { |path| File.join(path, "**/*.rb") })
+ filenames = Dir.glob(Rails.application.paths['app/models'].collect { |path| File.join(path, "**/*.rb") })
class_names = []
filenames.each do |filename|
class_names += File.read(filename).scan(/class ([\w\d_\-:]+)/).flatten.map(&:to_sym)

0 comments on commit f95dc59

Please sign in to comment.