JackDanger/permanent_records — pull request #36 by eanlain (2014-02-25 08:02:35+00:00)
Title: Update revive_destroyed_dependent_records

Use where instead of deprecated method, since Rails 3.2, find(:all, :conditions => {}).

Old/deprecated method resulted in the following error with Rails 4+ and Postgres when trying to revive a deleted object with dependent associations:
ActiveRecord::StatementInvalid: PG::InvalidTextRepresentation: ERROR: invalid input syntax for integer: "all"