static private Method

Base.find_every(options)

Find every resource

Source Code

# File active_resource/base.rb, line 447
def find_every(options)
  case from = options[:from]
  when Symbol
    instantiate_collection(get(from, options[:params]))
  when String
    path = "#{from}#{query_string(options[:params])}"
    instantiate_collection(connection.get(path, headers) || [])
  else
    prefix_options, query_options = split_options(options[:params])
    path = collection_path(prefix_options, query_options)
    instantiate_collection( (connection.get(path, headers) || []), prefix_options )
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.