Skip to content

Commit 628f4c5

Browse files
committed
Merge pull request #25 from felafelwaffle/felafelwaffle-rails-4-support
Rails 4 compatibility
2 parents 6d8a927 + fbd603a commit 628f4c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/supermodel/callbacks.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module Callbacks
1111
%w( create save update destroy ).each do |method|
1212
class_eval(<<-EOS, __FILE__, __LINE__ + 1)
1313
def #{method}_with_callbacks(*args, &block)
14-
_run_#{method}_callbacks do
14+
run_callbacks :#{method} do
1515
#{method}_without_callbacks(*args, &block)
1616
end
1717
end
@@ -20,4 +20,4 @@ def #{method}_with_callbacks(*args, &block)
2020
end
2121
end
2222
end
23-
end
23+
end

0 commit comments

Comments
 (0)