Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Prescription < ActiveRecord:Base
- has_settings do |s|
- s.key :print_options ,:defaults=> {:medication=>true,:medical_history=>false}
- end
- end
- Prescription.last.settings(:print_options).value
Add Comment
Please, Sign In to add comment