1 2 3 4 5 6 7 8 9 10 11 12 13 14
class Option < ActiveRecord::Base hobo_model # Don't put anything above this fields do content :string, :null => false timestamps end belongs_to :option_owner, :polymorphic => true, :creator => true, :null => false never_show :option_owner_type inherit_permissions(:option_owner) end