lib/rsqoot/category.rb in rsqoot-0.4.1 vs lib/rsqoot/category.rb in rsqoot-0.4.2
- old
+ new
@@ -3,10 +3,10 @@
# Retrieve a list of categories base on the following parameters
#
# @return [Hashie::Mash] category list
def categories(options={})
- updated_by options
+ options = update_by_expire_time options
query = options.delete(:query)
if categories_not_latest?(options)
@rsqoot_categories = get('categories', options)
@rsqoot_categories = @rsqoot_categories.categories.map(&:category) if @rsqoot_categories
end
\ No newline at end of file