Skip to content

Commit

Permalink
Changed current_model.find(:all) to current_model.all for easier scoping
Browse files Browse the repository at this point in the history
  • Loading branch information
postpostmodern authored and Johannes J. Schmidt committed Oct 6, 2009
1 parent d158304 commit a8e90e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resourceful/default/accessors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module Accessors
# which provides a lot of flexibility
# (see the documentation for current_model for details).
def current_objects
@current_objects ||= current_model.find(:all)
@current_objects ||= current_model.all
end

# Calls current_objects and stores
Expand Down

0 comments on commit a8e90e1

Please sign in to comment.