vendor/plugins/make_resourceful/lib/resourceful/default/accessors.rb
# current_objects returns an array representing the
# best-guess for what an index-like action might want
#
# It basically preforms:
#
#   User.find(:all, :include => auto_include)
#
# However, it is built off of current_model... which
# provides a lot of flexibility. If you override this method
# try and use current_model to build off of.
#
# For instance, if you wanted to limit to 5 entries.
#
#   def current_objects
#     @current_objects ||=current_model.find(:all, :limit => 5)
#   end
#
# Notice its recommended to cache the results
# so that multiple calls to this method do not
# require executing SQL calls.
#
current_objects returns an array representing the
best-guess for what an index-like action might want

It basically preforms.



However, it is built off of current_model... which
provides a lot of flexibility. If you override this method
try and use current_model to build off of.

For instance, if you wanted to limit to 5 entries.



Notice its recommended to cache the results
so that multiple calls to this method do not
require executing SQL calls.
current_objects returns an array representing the best - guess for what an index - like action might want It basically preforms . However it is built off of current_model ... which provides a lot of flexibility . If you override this method try and use current_model to build off of . For instance if you wanted to limit to 5 entries . Notice its recommended to cache the results so that multiple calls to this method do not require executing SQL calls .
def build_object
        @current_object = if current_model.respond_to? :build
          current_model.build(object_parameters)
        else
          current_model.new(object_parameters)
        end
      end
def build_object @current_object = if current_model . respond_to? :build current_model . build ( object_parameters ) else current_model . new ( object_parameters ) end end
current_objects returns an array representing the
best-guess for what an index-like action might want
current_objects returns an array representing the best - guess for what an index - like action might want