Permalink
Browse files

item filter

  • Loading branch information...
1 parent 2d489df commit 30393257f1121ac54d97b2441105fc7bd6ffcac7 Michael Larkin committed Jun 30, 2010
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/fetchapi/base.rb
  2. +1 −1 lib/fetchapi/download.rb
  3. +1 −1 lib/fetchapi/item.rb
View
2 lib/fetchapi/base.rb
@@ -16,7 +16,7 @@ def initialize(id_or_attributes) #:nodoc:
def self.find(selector, params={}) #:nodoc:
case selector
when :all
- objects = execute(:get, "/#{pluralized_class_name}")
+ objects = execute(:get, "/#{pluralized_class_name}#{"?" + params.to_params unless params.blank?}")
if objects[pluralized_class_name].blank?
return []
View
2 lib/fetchapi/download.rb
@@ -4,7 +4,7 @@ class Download < FetchAPI::Base
# Find :all downloads or the specified ID
def self.find(selector, params={})
- super(selector, params={})
+ super(selector, params)
end
end
View
2 lib/fetchapi/item.rb
@@ -19,7 +19,7 @@ def initialize(id_or_attributes) #:nodoc:
# Find :all items or a specific SKU
def self.find(selector, params={})
- super(selector, params={})
+ super(selector, params)
end

0 comments on commit 3039325

Please sign in to comment.