preference_fu
preference_fu copied to clipboard
Allows the storage of a number of boolean fields with just one table column
There are two fixes here. 1) fix unit test errors: NoMethodError: private method `write_attribute' called for # 2) fix for create: ArgumentError: wrong number of arguments (2 for 1) /Volumes/Devel/preference_fu/lib/preference_fu.rb:52:in...
It would be nice if preference_fu provided named scopes for searching preferences in the database. For example. User.with_preference(:send_email).without_preference(:change_theme) That would find all users where send_email preference is `true` and change_theme...