diff --git a/railties/lib/rails/generators/active_model.rb b/railties/lib/rails/generators/active_model.rb index 9f8a7aa4168..e5373704d7b 100644 --- a/railties/lib/rails/generators/active_model.rb +++ b/railties/lib/rails/generators/active_model.rb @@ -34,7 +34,7 @@ module Rails # GET index def self.all(klass) - "#{klass}.scoped.to_a" + "#{klass}.all" end # GET show