Flowdock
method

becomes!

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActiveRecord::Persistence
becomes!(klass) public

Wrapper around #becomes that also changes the instance’s sti column value. This is especially useful if you want to persist the changed class in your database.

Note: The old instance’s sti column value will be changed too, as both objects share the same set of attributes.

Show source
Register or log in to add new notes.