Skip to content

Commit 82ad783

Browse files
committed
Ruby 1.8.7 compatibility
1 parent 2eb5fd0 commit 82ad783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/workflow.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def run_action(action, *args)
268268
end
269269

270270
def has_callback?(action)
271-
self.respond_to?(action) or self.private_methods.include?(action)
271+
self.respond_to?(action) or self.private_methods.map { |n| n.to_sym }.include?(action)
272272
end
273273

274274
def run_action_callback(action_name, *args)

0 commit comments

Comments
 (0)