Guest User

Untitled

a guest
Jun 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. class Prescription < ActiveRecord:Base
  2. has_settings do |s|
  3. s.key :print_options ,:defaults=> {:medication=>true,:medical_history=>false}
  4. end
  5. end
  6.  
  7. Prescription.last.settings(:print_options).value
Add Comment
Please, Sign In to add comment