aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations
diff options
context:
space:
mode:
authorclaudiob <claudiob@gmail.com>2015-01-02 14:19:21 -0800
committerclaudiob <claudiob@gmail.com>2015-01-02 14:19:21 -0800
commit7cc145ec65167084e8b05d9462eaf94534fa0168 (patch)
tree31e8b5aad164e2f362a792a702e9f97b6b088dc7 /activemodel/lib/active_model/validations
parent6ae6e48b6ec50f5c2dd8f6b32c0a99372326bc41 (diff)
downloadrails-7cc145ec65167084e8b05d9462eaf94534fa0168.tar.gz
rails-7cc145ec65167084e8b05d9462eaf94534fa0168.tar.bz2
rails-7cc145ec65167084e8b05d9462eaf94534fa0168.zip
Use Active Model, not ActiveModel in plain English
Also prevents the word "Model" from linking to the documentation of ActiveModel::Model because that's not intended. [ci skip]
Diffstat (limited to 'activemodel/lib/active_model/validations')
-rw-r--r--activemodel/lib/active_model/validations/absence.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations/absence.rb b/activemodel/lib/active_model/validations/absence.rb
index 9b5416fb1d..75bf655578 100644
--- a/activemodel/lib/active_model/validations/absence.rb
+++ b/activemodel/lib/active_model/validations/absence.rb
@@ -1,6 +1,6 @@
module ActiveModel
module Validations
- # == Active Model Absence Validator
+ # == \Active \Model Absence Validator
class AbsenceValidator < EachValidator #:nodoc:
def validate_each(record, attr_name, value)
record.errors.add(attr_name, :present, options) if value.present?