aboutsummaryrefslogtreecommitdiff
blob: 6a9801da1e5e5e1af1986b7d5040e3b010f9e60c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Hobo model storing options for multiple choice questions.
# Inherits permissions from option_owner.
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