Skip to content
Browse files

Update attribute_methods.rb

Improve documentation
  • Loading branch information...
1 parent df5c9aa commit 57643c961feb24b662620d330e71103a830003e8 @guilleiguaran guilleiguaran committed May 11, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/attribute_methods.rb
View
2 activerecord/lib/active_record/attribute_methods.rb
@@ -329,7 +329,7 @@ def attribute_for_inspect(attr_name)
# 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

0 comments on commit 57643c9

Please sign in to comment.
Something went wrong with that request. Please try again.