lib/reform/form/active_model/validations.rb in reform-rails-0.2.3 vs lib/reform/form/active_model/validations.rb in reform-rails-0.2.4
- old
+ new
@@ -159,10 +159,11 @@
end
def method_missing(m, *args, &block)
@amv_errors.send(m, *args, &block) # send all methods to the AMV errors, even privates.
end
+ ruby2_keywords(:method_missing) if respond_to?(:ruby2_keywords, true)
def respond_to?(method, include_all = false)
@amv_errors.respond_to?(method, include_all) ? true : super
end
@@ -231,9 +232,10 @@
end
def method_missing(m, *args, &block)
__getobj__.send(m, *args, &block) # send all methods to the form, even privates.
end
+ ruby2_keywords(:method_missing) if respond_to?(:ruby2_keywords, true)
end
end
end