lib/active_resource/validations.rb in activeresource-4.1.0 vs lib/active_resource/validations.rb in activeresource-5.0.0

- old
+ new

@@ -98,10 +98,11 @@ module Validations extend ActiveSupport::Concern include ActiveModel::Validations included do - alias_method_chain :save, :validation + alias_method :save_without_validation, :save + alias_method :save, :save_with_validation end # Validate a resource and save (POST) it to the remote web service. # If any local validations fail - the save (POST) will not be attempted. def save_with_validation(options={})