app/models/canvas/course_settings.rb
# If necessary, reset a site to use ETS's preferred default landing page.
If necessary, reset a site to use ETS's preferred default landing page.
If necessary reset a site to use ETS ' s preferred default landing page .
def fix_default_view(course_properties)
      if course_properties['default_view'] != DEFAULT_HOME_PAGE
        logger.info "Will change default view for site ID #{@course_id} from '#{course_properties['default_view']}' to '#{DEFAULT_HOME_PAGE}'"
        results = set_default_view DEFAULT_HOME_PAGE
        logger.error "Could not change default view for site ID #{@course_id}" if results[:statusCode] != 200
        results
      end
    end
def fix_default_view ( course_properties ) if course_properties [ 'default_view' ] != DEFAULT_HOME_PAGE logger . info "Will change default view for site ID #{@course_id} from '#{course_properties['default_view']}' to '#{DEFAULT_HOME_PAGE}'" results = set_default_view DEFAULT_HOME_PAGE logger . error "Could not change default view for site ID #{@course_id}" if results [ :statusCode ] != 200 results end end
If necessary, reset a site to use ETS's preferred default landing page.
If necessary reset a site to use ETS ' s preferred default landing page .
course_properties
<not_specific>