fastlane/lib/fastlane/runner.rb in fastlane-2.0.4 vs fastlane/lib/fastlane/runner.rb in fastlane-2.0.5
- old
+ new
@@ -116,10 +116,12 @@
alias_found = find_alias(method_sym.to_s)
if alias_found
orig_action = method_sym.to_s
class_ref = class_reference_from_action_name(alias_found.to_sym)
# notify action that it has been used by alias
- class_ref.alias_used(orig_action, arguments.first)
+ if class_ref.respond_to?(:alias_used)
+ class_ref.alias_used(orig_action, arguments.first)
+ end
end
end
# It's important to *not* have this code inside the rescue block
# otherwise all NameErrors will be caught and the error message is