Permalink
Browse files

Removing the _validates_default_keys check

  • Loading branch information...
1 parent bcc37a1 commit 40af098edd2e8f7fa4cfdadb733b3763719cda10 @ajn ajn committed Aug 4, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/modest_model/combined_attr.rb
View
3 lib/modest_model/combined_attr.rb
@@ -1,8 +1,7 @@
module ModestModel
module CombinedAttr
def attribute *attrs
- options = attrs.extract_options!
- validations = options.slice!(*_validates_default_keys)
+ validations = attrs.extract_options!
attributes *attrs
validates *(attrs +[validations]) if validations.any?
end

0 comments on commit 40af098

Please sign in to comment.