Skip to content

Commit

Permalink
Updated active_record adapter to use modern query methods, eliminatin…
Browse files Browse the repository at this point in the history
…g hordes of deprecation warnings in Rails 4.
  • Loading branch information
myrlund committed Jan 20, 2013
1 parent 3bfd0f0 commit e7354a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stringex/acts_as_url/adapter/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e7354a7

Please sign in to comment.