lib/scrivener/validations.rb in scrivener-1.1.0 vs lib/scrivener/validations.rb in scrivener-1.1.1
- old
+ new
@@ -65,17 +65,17 @@
# assert_present :user
# assert_present :password
# end
# end
#
- def valid?(*args)
+ def valid?(*args, **kargs)
errors.clear
- validate(*args)
+ validate(*args, **kargs)
errors.empty?
end
# Base validate implementation. Override this method in subclasses.
- def validate(*args)
+ def validate(*args, **kargs)
end
# Hash of errors for each attribute in this model.
def errors
@errors ||= Hash.new { |hash, key| hash[key] = [] }