on_destroy 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/on_destroy/model.rb +1 -1
- data/lib/on_destroy/version.rb +1 -1
- metadata +1 -1
data/lib/on_destroy/model.rb
CHANGED
@@ -30,7 +30,7 @@ module OnDestroy
|
|
30
30
|
# that is just a guess, based on the mark with deleted_at date example.
|
31
31
|
self.is_deleted_if = Proc.new {|v| v != nil}
|
32
32
|
else
|
33
|
-
self.is_deleted_if = Proc.new {|v| v ==
|
33
|
+
self.is_deleted_if = Proc.new {|v| v == options[:to]}
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
data/lib/on_destroy/version.rb
CHANGED