Module: Container
- Extended by:
- ActiveSupport::Concern
- Included in:
- GuideContainer, TopicContainer
- Defined in:
- app/models/concerns/container.rb
Instance Method Summary collapse
- #content_used_in?(organization) ⇒ Boolean
- #navigable_content_in(organization = Organization.current) ⇒ Object
- #progress_for(user, organization = Organization.current) ⇒ Object
Instance Method Details
#content_used_in?(organization) ⇒ Boolean
27 28 29 |
# File 'app/models/concerns/container.rb', line 27 def content_used_in?(organization) navigable_content_in(organization).present? end |
#navigable_content_in(organization = Organization.current) ⇒ Object
23 24 25 |
# File 'app/models/concerns/container.rb', line 23 def navigable_content_in(organization = Organization.current) content.usage_in_organization(organization) end |
#progress_for(user, organization = Organization.current) ⇒ Object
19 20 21 |
# File 'app/models/concerns/container.rb', line 19 def progress_for(user, organization=Organization.current) content.progress_for(user, organization) end |