Skip to content

Commit

Permalink
Update attribute_methods.rb
Browse files Browse the repository at this point in the history
Improve documentation
  • Loading branch information
guilleiguaran committed May 12, 2014
1 parent df5c9aa commit 57643c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/attribute_methods.rb
Expand Up @@ -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
Expand Down

0 comments on commit 57643c9

Please sign in to comment.