Module: Assistable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Exercise
- Defined in:
- app/models/concerns/assistable.rb
Instance Method Summary collapse
Instance Method Details
#assist_with(assignment) ⇒ Object
12 13 14 15 16 |
# File 'app/models/concerns/assistable.rb', line 12 def assist_with(assignment) # not strictly necessary, but avoid going through # all the assistence process when there are no rules assistance_rules.blank? ? [] : assistant.assist_with(assignment) end |
#assistant ⇒ Object
8 9 10 |
# File 'app/models/concerns/assistable.rb', line 8 def assistant Mumukit::Assistant.parse(assistance_rules) end |