From 57643c961feb24b662620d330e71103a830003e8 Mon Sep 17 00:00:00 2001 From: Guillermo Iguaran Date: Sun, 11 May 2014 22:29:04 -0500 Subject: Update attribute_methods.rb Improve documentation --- activerecord/lib/active_record/attribute_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/attribute_methods.rb') diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb index 5b4043039b..7fd7accc6b 100644 --- a/activerecord/lib/active_record/attribute_methods.rb +++ b/activerecord/lib/active_record/attribute_methods.rb @@ -329,7 +329,7 @@ module ActiveRecord # task = Task.new(title: '', is_done: false) # task.attribute_present?(:title) # => false # task.attribute_present?(:is_done) # => true - # task.title = 'Francesco' + # task.title = 'Buy milk' # task.is_done = true # task.attribute_present?(:title) # => true # task.attribute_present?(:is_done) # => true -- cgit v1.2.3