Flowdock
method

toggle

Importance_1
v3.1.0 - Show latest stable - 0 notes - Class: ActiveRecord::Persistence
toggle(attribute) public

Assigns to attribute the boolean opposite of attribute?. So if the predicate returns true the attribute will become false. This method toggles directly the underlying value without calling any setter. Returns self.

Show source
Register or log in to add new notes.