Permalink
Browse files

No need to validate values when saving (now that we use `properties` …

…instead of `attributes`)
  • Loading branch information...
1 parent 41a422e commit 5ccbe426f8c6fec5ccceea5ea63e68851370e48f @serebryakov serebryakov committed May 27, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/lib/adapters/rails.rb
@@ -138,7 +138,7 @@ def record_attributes(record)
def save_options
Hash[@query.to_a.map do |condition|
name = @replace[condition.name]
- [name, validate(condition.value)]
+ [name, condition.value]
end.reject do |name, value|
name.nil? or value.nil?
end]

0 comments on commit 5ccbe42

Please sign in to comment.