From 4c4aaa4aa3dd0dc94e7653618c80d8ac894cfb3d Mon Sep 17 00:00:00 2001 From: Andrew Grimm Date: Tue, 25 Aug 2015 18:38:38 +1000 Subject: [PATCH] [ci skip] Fix #21364 error in documentation about ActiveRecord::Enum --- activerecord/lib/active_record/enum.rb | 3 +-- 1 file changed, 1 insertion(+), 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