diff options
author | Andrew Grimm <andrew.j.grimm@gmail.com> | 2015-08-25 18:38:38 +1000 |
---|---|---|
committer | Andrew Grimm <andrew.j.grimm@gmail.com> | 2015-08-25 18:39:33 +1000 |
commit | 4c4aaa4aa3dd0dc94e7653618c80d8ac894cfb3d (patch) | |
tree | f3123aafefa9e78c2715ccf460c7ce20ce871790 | |
parent | f3e68ec16a123dd08098608644451dbb338bfa7e (diff) | |
download | rails-4c4aaa4aa3dd0dc94e7653618c80d8ac894cfb3d.tar.gz rails-4c4aaa4aa3dd0dc94e7653618c80d8ac894cfb3d.tar.bz2 rails-4c4aaa4aa3dd0dc94e7653618c80d8ac894cfb3d.zip |
[ci skip] Fix #21364 error in documentation about ActiveRecord::Enum
-rw-r--r-- | activerecord/lib/active_record/enum.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/enum.rb b/activerecord/lib/active_record/enum.rb index 91a13cb0cd..4902fcb1a2 100644 --- a/activerecord/lib/active_record/enum.rb +++ b/activerecord/lib/active_record/enum.rb @@ -18,10 +18,9 @@ module ActiveRecord # conversation.archived? # => true # conversation.status # => "archived" # - # # conversation.update! status: 1 + # # conversation.status = 1 # conversation.status = "archived" # - # # conversation.update! status: nil # conversation.status = nil # conversation.status.nil? # => true # conversation.status # => nil |