Permalink
Browse files

really aliased validates and validate macros

  • Loading branch information...
1 parent e78f9d0 commit 8119ad7016153b0b61d8cff7c912951f3c464f07 @sxross committed Dec 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/motion_model/validatable.rb
@@ -21,7 +21,7 @@ def validate(field = nil, validation_type = {})
@validations << {field => validation_type}
end
- alias :validate, :validates
+ alias_method :validates, :validate
def validations
@validations

0 comments on commit 8119ad7

Please sign in to comment.