Skip to content

Commit

Permalink
fix Default scope
Browse files Browse the repository at this point in the history
  • Loading branch information
fmnoise committed Apr 7, 2016
1 parent ab31723 commit 09b7d57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/acts_as_paranoid/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def paranoid_default_scope_sql
if string_type_with_deleted_value?
self.all.table[paranoid_column].eq(nil).
or(self.all.table[paranoid_column].not_eq(paranoid_configuration[:deleted_value])).
to_sql
to_sql(self)
else
self.all.table[paranoid_column].eq(nil).to_sql
self.all.table[paranoid_column].eq(nil).to_sql(self)
end
end

Expand Down

0 comments on commit 09b7d57

Please sign in to comment.