app/sms/bmc/sms/application_sms.rb in bmc-1.3.5 vs app/sms/bmc/sms/application_sms.rb in bmc-1.4.0
- old
+ new
@@ -25,18 +25,18 @@
end
class << self
private :new
- def method_missing(m, *args)
+ def method_missing(m, ...)
if respond_to_missing?(m)
- new(action_name: m).public_send(m, *args)
+ new(action_name: m).public_send(m, ...)
else
super
end
end
- def respond_to_missing?(m, *)
+ def respond_to_missing?(m, include_private = false)
super || public_instance_methods.include?(m)
end
end # class << self
end