mongoid_silo 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,7 @@ module MongoidSilo
|
|
22
22
|
@silo = Silo.create(item_class: @item_class, item_id: @item_id, bag: @content, silo_type: name)
|
23
23
|
end
|
24
24
|
if @callback
|
25
|
-
@item.__send__(@callback
|
25
|
+
@item.__send__(@callback, :updated)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -32,7 +32,7 @@ module MongoidSilo
|
|
32
32
|
@silo.destroy
|
33
33
|
end
|
34
34
|
if @callback
|
35
|
-
@item.__send__(@callback
|
35
|
+
@item.__send__(@callback, :destroyed)
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
data/lib/mongoid_silo/version.rb
CHANGED