diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-08-25 13:32:59 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-08-25 13:32:59 +0200 |
commit | 211c31d2718165e68d4676d70eb1315c6b767dcc (patch) | |
tree | f3123aafefa9e78c2715ccf460c7ce20ce871790 /activerecord/lib | |
parent | f3e68ec16a123dd08098608644451dbb338bfa7e (diff) | |
parent | 4c4aaa4aa3dd0dc94e7653618c80d8ac894cfb3d (diff) | |
download | rails-211c31d2718165e68d4676d70eb1315c6b767dcc.tar.gz rails-211c31d2718165e68d4676d70eb1315c6b767dcc.tar.bz2 rails-211c31d2718165e68d4676d70eb1315c6b767dcc.zip |
Merge pull request #21369 from agrimm/documentation_fix_21364
[ci skip] Fix #21364 error in documentation about ActiveRecord::Enum
Diffstat (limited to 'activerecord/lib')
-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 |