diff --git a/couchrest.gemspec b/couchrest.gemspec index a0736f4..a759d34 100644 --- a/couchrest.gemspec +++ b/couchrest.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |s| s.name = %q{couchrest} - s.version = "0.14.1" + s.version = "0.14.2" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["J. Chris Anderson", "Matt Aimonetti"] diff --git a/lib/couchrest.rb b/lib/couchrest.rb index 56ae9f5..c900d32 100644 --- a/lib/couchrest.rb +++ b/lib/couchrest.rb @@ -27,7 +27,7 @@ require 'couchrest/monkeypatches' # = CouchDB, close to the metal module CouchRest - VERSION = '0.14.1' + VERSION = '0.14.2' autoload :Server, 'couchrest/core/server' autoload :Database, 'couchrest/core/database' diff --git a/lib/couchrest/validation/validators/confirmation_validator.rb b/lib/couchrest/validation/validators/confirmation_validator.rb index 64d6eaf..d5fdff1 100644 --- a/lib/couchrest/validation/validators/confirmation_validator.rb +++ b/lib/couchrest/validation/validators/confirmation_validator.rb @@ -52,10 +52,6 @@ module CouchRest return true if @options[:allow_nil] && field_value.nil? return false if !@options[:allow_nil] && field_value.nil? - if target.class.properties.has_property?(field_name) - return true unless target.attribute_dirty?(field_name) - end - confirm_value = target.instance_variable_get("@#{@confirm_field_name}") field_value == confirm_value end