diff options
author | Nolan Evans <nolane@gmail.com> | 2013-06-25 08:19:21 -0700 |
---|---|---|
committer | Nolan Evans <nolane@gmail.com> | 2013-06-25 08:19:21 -0700 |
commit | e84edf13c2984c071e91e747995075bd80b1c194 (patch) | |
tree | 0923a0480d099938f7cf40839ca9ee4fe3f1bf5a /railties/lib | |
parent | 79abf07be8f623ae803659c38c2692a234cc7831 (diff) | |
download | rails-e84edf13c2984c071e91e747995075bd80b1c194.tar.gz rails-e84edf13c2984c071e91e747995075bd80b1c194.tar.bz2 rails-e84edf13c2984c071e91e747995075bd80b1c194.zip |
fix deprecation warning in scaffold controllers
Diffstat (limited to 'railties/lib')
-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 e5373704d7..71104a069c 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}.all" + "#{klass}.all.to_a" end # GET show |