From 700c797f40659f4cdb15eb20c56790c781806b67 Mon Sep 17 00:00:00 2001 From: Jason T Johnson Date: Sat, 20 Dec 2008 04:29:16 +0800 Subject: [PATCH] Updated documentation to reflect .all change --- DEFAULTS | 2 +- lib/resourceful/default/accessors.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DEFAULTS b/DEFAULTS index b77b38f..7db4674 100644 --- a/DEFAULTS +++ b/DEFAULTS @@ -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 diff --git a/lib/resourceful/default/accessors.rb b/lib/resourceful/default/accessors.rb index 335b055..aa52d02 100644 --- a/lib/resourceful/default/accessors.rb +++ b/lib/resourceful/default/accessors.rb @@ -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 User.find(:all). + # For UsersController, it essentially runs User.all. # # However, there are a few important differences. # First, this method caches is results in the @current_objects instance variable.