Permalink
Browse files

Merge pull request #83 from myrlund/deprecation

Updated active_record adapter to use modern query methods
  • Loading branch information...
2 parents 018d68d + e7354a7 commit 6ba15288ab71ebe04e735fa892e5c2187edc0d53 @rsl committed Jan 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 6ba1528

Please sign in to comment.