Module: Container

Extended by:
ActiveSupport::Concern
Included in:
GuideContainer, TopicContainer
Defined in:
app/models/concerns/container.rb

Instance Method Summary collapse

Instance Method Details

#content_used_in?(organization) ⇒ Boolean

Returns:

  • (Boolean)


27
28
29
# File 'app/models/concerns/container.rb', line 27

def content_used_in?(organization)
  navigable_content_in(organization).present?
end


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