diff options
-rw-r--r-- | railties/lib/rails/generators/active_model.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/active_model.rb b/railties/lib/rails/generators/active_model.rb index 9f8a7aa416..e5373704d7 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 |