Skip to content

Commit

Permalink
Ruby 1.8.7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
dwbutler committed Aug 27, 2012
1 parent 2eb5fd0 commit 82ad783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/workflow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def run_action(action, *args)
end

def has_callback?(action)
self.respond_to?(action) or self.private_methods.include?(action)
self.respond_to?(action) or self.private_methods.map { |n| n.to_sym }.include?(action)
end

def run_action_callback(action_name, *args)
Expand Down

0 comments on commit 82ad783

Please sign in to comment.