lib/active_remote/validations.rb in active_remote-3.3.3 vs lib/active_remote/validations.rb in active_remote-5.0.0.pre

- old
+ new

@@ -52,10 +52,10 @@ alias_method :validate, :valid? protected def raise_validation_error - fail(::ActiveRemote::RemoteRecordInvalid.new(self)) + fail ActiveRemote::RemoteRecordInvalid, self end def perform_validations(options = {}) options[:validate] == false || valid?(options[:context]) end