HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-2.7.4/doc/activerecord-6.1.4.1/ri/ActiveRecord/Persistence/toggle-i.ri
U:RDoc::AnyMethod[iI"toggle:ETI"%ActiveRecord::Persistence#toggle;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph;	[	I"LAssigns to +attribute+ the boolean opposite of <tt>attribute?</tt>. So ;TI"Mif the predicate returns +true+ the attribute will become +false+. This ;TI"Nmethod toggles directly the underlying value without calling any setter. ;TI"Returns +self+.;To:RDoc::Markup::BlankLineo;
;	[I"
Example:;T@o:RDoc::Markup::Verbatim;	[	I"user = User.first
;TI"user.banned? # => false
;TI"user.toggle(:banned)
;TI"user.banned? # => true;T:@format0:
@fileI"%lib/active_record/persistence.rb;T:0@omit_headings_from_table_of_contents_below000[I"(attribute);T@FI"Persistence;TcRDoc::NormalModule00