motion_model 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/motion_model/model/model.rb +1 -1
- data/lib/motion_model/version.rb +2 -1
- metadata +1 -1
@@ -428,7 +428,7 @@ module MotionModel
|
|
428
428
|
def call_hooks(hook_name, &block)
|
429
429
|
result = call_hook('before', hook_name)
|
430
430
|
# returning false from a before_ hook stops the process
|
431
|
-
block.call if result
|
431
|
+
block.call if result != false && block_given?
|
432
432
|
call_hook('after', hook_name)
|
433
433
|
end
|
434
434
|
|
data/lib/motion_model/version.rb
CHANGED