app/models/canvas_lti/official_course.rb
# Returns true if course site contains official sections
Returns true if course site contains official sections
Returns true if course site contains official sections
def is_official_course?(options = {})
      default_options = {:cache => true}
      options.reverse_merge!(default_options)
      get_official_course_status = Proc.new {
        (official_section_identifiers.count > 0) ? true : false
      }
      if options[:cache].present?
        self.class.fetch_from_cache("is-official-#{@canvas_course_id}") { get_official_course_status.call }
      else
        get_official_course_status.call
      end
    end
def is_official_course? ( options = { } ) default_options = { :cache => true } options . reverse_merge! ( default_options ) get_official_course_status = Proc . new { ( official_section_identifiers . count > 0 ) ? true : false } if options [ :cache ] . present? self . class . fetch_from_cache ( "is-official-#{@canvas_course_id}" ) { get_official_course_status . call } else get_official_course_status . call end end
Returns true if course site contains official sections
Returns true if course site contains official sections
options
<not_specific>