Module: GuideContainer
- Extended by:
- ActiveSupport::Concern
- Included in:
- Complement, Exam, Lesson
- Defined in:
- app/models/concerns/guide_container.rb
Instance Method Summary collapse
- #friendly ⇒ Object
- #index_usage!(organization = Organization.current) ⇒ Object
- #start!(user) ⇒ Object
- #timed? ⇒ Boolean
- #validate_accessible_for!(user) ⇒ Object
Instance Method Details
#friendly ⇒ Object
21 22 23 |
# File 'app/models/concerns/guide_container.rb', line 21 def friendly defaulting_name { "#{navigable_parent.friendly}: #{name}" } end |
#index_usage!(organization = Organization.current) ⇒ Object
17 18 19 |
# File 'app/models/concerns/guide_container.rb', line 17 def index_usage!(organization = Organization.current) organization.index_usage_of! guide, self end |
#start!(user) ⇒ Object
32 33 |
# File 'app/models/concerns/guide_container.rb', line 32 def start!(user) end |
#timed? ⇒ Boolean
28 29 30 |
# File 'app/models/concerns/guide_container.rb', line 28 def timed? false end |
#validate_accessible_for!(user) ⇒ Object
25 26 |
# File 'app/models/concerns/guide_container.rb', line 25 def validate_accessible_for!(user) end |