diff options
Diffstat (limited to 'activemodel/examples/validations.rb')
-rw-r--r-- | activemodel/examples/validations.rb | 2 |
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 |