Module: ScreeningModel::ClassMethods
- Defined in:
- lib/screening_model.rb
Instance Method Summary collapse
Instance Method Details
#actions ⇒ Object
7 8 9 |
# File 'lib/screening_model.rb', line 7 def actions @actions ||= Enum.new(:block, :do_nothing, :allow_admin) end |
#default_action(action_key) ⇒ Object
11 12 13 |
# File 'lib/screening_model.rb', line 11 def default_action(action_key) @default_action = action_key end |
#df_action ⇒ Object
15 16 17 |
# File 'lib/screening_model.rb', line 15 def df_action @default_action || :do_nothing end |