Browse files

Change reference to all to scoped instead.

In #11088, `#to_a` was added to remove a deprecation around using
`#all`. I merged, but it really should have been `#scoped` instead, as
that's the preferred replacement.
  • Loading branch information...
1 parent 34d6708 commit 0c850f8dab8c23abc3f8675fd2b82af20101c3c4 @steveklabnik steveklabnik committed Jun 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/generators/active_model.rb
View
2 railties/lib/rails/generators/active_model.rb
@@ -34,7 +34,7 @@ def initialize(name)
# GET index
def self.all(klass)
- "#{klass}.all.to_a"
+ "#{klass}.scoped.to_a"
end
# GET show

0 comments on commit 0c850f8

Please sign in to comment.