You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removing existing flags leads to an issue with the class methods. Here is a minimal example ...
Initial state ..
classSpaceship < ActiveRecord::BaseincludeFlagShihTzuhas_flags1=>:warpdrive,
2=>:shieldsends=Spaceship.create!s.warpdrive=trues.shields=trues.saves.flags# => 3Spaceship.warpdrive.count# => 1, all is well
Now we change the flags to just ..
classSpaceship < ActiveRecord::BaseincludeFlagShihTzuhas_flags1=>:warpdriveends=Spaceship.firsts.flags# => 3s.warpdrive?# => true# Here is the problemSpaceship.warpdrive.count# => 0
The text was updated successfully, but these errors were encountered:
Removing existing flags leads to an issue with the class methods. Here is a minimal example ...
Initial state ..
Now we change the flags to just ..
The text was updated successfully, but these errors were encountered: