We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82ad783 commit 7214adeCopy full SHA for 7214ade
lib/workflow.rb
@@ -268,7 +268,7 @@ def run_action(action, *args)
268
end
269
270
def has_callback?(action)
271
- self.respond_to?(action) or self.private_methods.map { |n| n.to_sym }.include?(action)
+ self.respond_to?(action) or self.class.private_method_defined?(action)
272
273
274
def run_action_callback(action_name, *args)
0 commit comments