Skip to content

Updated active_record adapter to use modern query methods #83

Merged
merged 1 commit into from Jan 23, 2013
View
2 lib/stringex/acts_as_url/adapter/active_record.rb
@@ -58,7 +58,7 @@ def url_owner_conditions
end
def url_owners
- @url_owners ||= url_owners_class.unscoped.find(:all, :conditions => url_owner_conditions)
+ @url_owners ||= url_owners_class.unscoped.where(url_owner_conditions)
end
def self.orm_class
Something went wrong with that request. Please try again.