Permalink
Browse files

Updated active_record adapter to use modern query methods, eliminatin…

…g hordes of deprecation warnings in Rails 4.
  • Loading branch information...
1 parent 3bfd0f0 commit e7354a73ecbeac588da5be07f525b7c4dd869b90 @myrlund committed Jan 20, 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 e7354a7

Please sign in to comment.