Permalink
Browse files

Merge pull request #11088 from nolman/nolman/scaffold-fix

fix deprecation warning in scaffold controllers
  • Loading branch information...
2 parents 79abf07 + e84edf1 commit 34d6708be8dab833c25e79d3eaf96dbdf5c5bbfe @steveklabnik steveklabnik committed Jun 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/generators/active_model.rb
@@ -34,7 +34,7 @@ def initialize(name)
# GET index
def self.all(klass)
- "#{klass}.all"
+ "#{klass}.all.to_a"
end
# GET show

0 comments on commit 34d6708

Please sign in to comment.