Skip to content

Commit

Permalink
enabled validation for records to be recovered
Browse files Browse the repository at this point in the history
  • Loading branch information
borisruf committed Jan 28, 2011
1 parent 3a9a45d commit d745e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rails3_acts_as_paranoid.rb
Expand Up @@ -93,7 +93,7 @@ def recover(options = {})
self.class.transaction do
recover_dependent_associations(options[:recovery_window], options) if options[:recursive]
self.update_attribute(self.class.paranoid_column, nil)
self.update_attributes(self.class.paranoid_column.to_sym => nil)
end
end
Expand Down

0 comments on commit d745e56

Please sign in to comment.