aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/examples
diff options
context:
space:
mode:
Diffstat (limited to 'activemodel/examples')
-rw-r--r--activemodel/examples/validations.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/examples/validations.rb b/activemodel/examples/validations.rb
index a56ec4db39..2c5cc11f49 100644
--- a/activemodel/examples/validations.rb
+++ b/activemodel/examples/validations.rb
@@ -4,7 +4,7 @@ class Person
include ActiveModel::Conversion
include ActiveModel::Validations
- validates_presence_of :name
+ validates :name, presence: true
attr_accessor :name