diff options
author | Xavier Noria <fxn@hashref.com> | 2010-07-30 02:30:04 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-07-30 02:30:04 +0200 |
commit | 755af497555fde16db86f7e51f6462b0aca79b49 (patch) | |
tree | 9280835167f7ea7422df010f67c65c729dd26de1 /activemodel/lib/active_model/validator.rb | |
parent | a7a6a2ff46b173b420bd493d727772531d72658f (diff) | |
download | rails-755af497555fde16db86f7e51f6462b0aca79b49.tar.gz rails-755af497555fde16db86f7e51f6462b0aca79b49.tar.bz2 rails-755af497555fde16db86f7e51f6462b0aca79b49.zip |
edit pass to apply API guideline wrt the use of "# =>" in example code
Diffstat (limited to 'activemodel/lib/active_model/validator.rb')
-rw-r--r-- | activemodel/lib/active_model/validator.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/validator.rb b/activemodel/lib/active_model/validator.rb index 689c617177..52192d5988 100644 --- a/activemodel/lib/active_model/validator.rb +++ b/activemodel/lib/active_model/validator.rb @@ -102,8 +102,8 @@ module ActiveModel #:nodoc: # # == Examples # - # PresenceValidator.kind #=> :presence - # UniquenessValidator.kind #=> :uniqueness + # PresenceValidator.kind # => :presence + # UniquenessValidator.kind # => :uniqueness # def self.kind @kind ||= name.split('::').last.underscore.sub(/_validator$/, '').to_sym unless anonymous? |