README.rdoc in preferences-0.4.0 vs README.rdoc in preferences-0.4.1
- old
+ new
@@ -58,10 +58,10 @@
class User < ActiveRecord::Base
preference :hot_salsa
preference :dark_chocolate, :default => true
preference :color, :string
preference :favorite_number
- preference :language, :string, :default => 'English'
+ preference :language, :string, :default => 'English', :group_defaults => {:chat => 'Spanish'}
end
In the above model, 5 preferences have been defined:
* hot_salsa
* dark_chocolate