appraisal-rb Logo by Aboling0, CC BY-SA 4.0 kettle-rb Logo by Aboling0, CC BY-SA 4.0 floss-funding Logo by Aboling0, CC BY-SA 4.0 galtzo-floss Logo by Aboling0, CC BY-SA 4.0 omniauth Logo by (presumed) tomeara, (presumed) MIT resque Logo by Resque development team, MIT rubocop-lts Logo by Aboling0, CC BY-SA 4.0 oauth Logo by Chris Messina, CC BY-SA 3.0 ruby-openid Logo by Aboling0, CC BY-SA 4.0

Why Should You Use flag_shih_tzu

What is it?

See the what is it post.

Why should you use it?

Why is it better than the alternative?

The competition is Michael Grosser’s bitfields, and as always, it depends on your needs. Grosser’s library is less than half the size of flag_shih_tzu, and has far fewer features, and a much smaller compatibility matrix. Some of the differences are laid out below.

For some things however, you only have one option. If you are still on legacy Ruby or legacy Rails, or using jRuby, then use flag_shih_tzu. If you need multiple flag columns on a single model, use flag_shih_tzu. If you want to use it with form builders, it is slightly easier with flag_shih_tzu.

comparison flag_shih_tzu bitfields
Age Mar 2009 Mar 2010
Legacy MRI Support 1.8.7, 1.9.2 None
Current MRI Support 1.9.3, 2.0, 2.1, 2.2 1.9.3 2.0
Current jRuby Support jRuby-1.7, jRuby-9.0 None
Legacy Rails Support 2.3, 3.0, 3.1, 3.2 None
Current Rails Support 2.3, 3.0, 3.1, 3.2, 4.0, 4.1, 4.2 3.2, 4.0, 4.1, 4.2
Stars Stars Stars
Forks Network Network
Downloads (All-time) Total Downloads Total Downloads
Downloads (Today) Downloads Today Downloads Today
Code Quality Code Quality Code Quality
Build Build Build
Documentation Documentation Documentation
Dependency Status Depfu Unknown
Custom Flag Column Name Yes Yes
Multiple Flag Columns per Model Yes No
Has analog to update_column Yes No
Built-in use with update_all Yes Yes
Built-in use with form builders Yes No
Built-in Validator Yes No
Change Tracking _was No Yes
Change Tracking _changed? Yes Yes
Change Tracking _change No Yes
Scopes Optional Yes Yes