Sha256: 7a3fb865b8831aa91189abd069705ae8edaf8f8df505126dc3351effb325b466
Contents?: true
Size: 401 Bytes
Versions: 21
Compression:
Stored size: 401 Bytes
Contents
module Assistable extend ActiveSupport::Concern included do serialize :assistance_rules, Array end def assistant Mumukit::Assistant.parse(assistance_rules) end 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 end
Version data entries
21 entries across 21 versions & 1 rubygems