aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorRajarshi Das <rajarshid@cybage.com>2013-06-24 11:19:51 +0530
committerRajarshi Das <rajarshid@cybage.com>2013-06-24 11:19:51 +0530
commitcbd4a2e3178f16a7c363035a111093692bece379 (patch)
treeb01e0af257ce97127c1817bcc71a5ba10758225d /activemodel
parent11ac1e8a2ce9b12fce829088e1000328687d0cf4 (diff)
downloadrails-cbd4a2e3178f16a7c363035a111093692bece379.tar.gz
rails-cbd4a2e3178f16a7c363035a111093692bece379.tar.bz2
rails-cbd4a2e3178f16a7c363035a111093692bece379.zip
replace all older rocket sign to new ":" from examples of active record and active models
Diffstat (limited to 'activemodel')
-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