Skip to content

Commit

Permalink
Updated documentation to reflect .all change
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 a8e90e1 commit 700c797
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DEFAULTS
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ indicating how to customize various bits of the controller.
class PostsController < ApplicationController
def index
# Override #current_objects to change this
@posts = Post.find(:all)
@posts = Post.all

# Use before :index to add something here

Expand Down
2 changes: 1 addition & 1 deletion lib/resourceful/default/accessors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module Default
# for providing customized model lookup logic.
module Accessors
# Returns an array of all the objects of the model corresponding to the controller.
# For UsersController, it essentially runs <tt>User.find(:all)</tt>.
# For UsersController, it essentially runs <tt>User.all</tt>.
#
# However, there are a few important differences.
# First, this method caches is results in the <tt>@current_objects</tt> instance variable.
Expand Down

0 comments on commit 700c797

Please sign in to comment.