Commit f5bd60f2 by Nikolay Norkin

Callbacks array definition for old ruby versions

parent 348b1c72
......@@ -47,7 +47,7 @@ module Paranoia
module Callbacks
def self.extended(klazz)
%i(restore real_destroy).each do |callback_name|
[:restore, :real_destroy].each do |callback_name|
klazz.define_callbacks callback_name
klazz.define_singleton_method("before_#{callback_name}") do |*args, &block|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment