Sha256: 914991cc50828bc2af8ffb256c384adc7338f7379fcc1059cc3bca8cdec90f9e
Contents?: true
Size: 595 Bytes
Versions: 19
Compression:
Stored size: 595 Bytes
Contents
module LtiProvider module LtiXmlConfig def self.load_config YAML::load(File.open(config_file))[Rails.env] end def self.config_file LtiProvider.app_root.join('config/lti_xml.yml') end def self.setup! config = LtiProvider::XmlConfig if File.exists?(config_file) Rails.logger.info "Initializing LTI XML config using configuration in #{config_file}" load_config.each do |k,v| config.send("#{k}=", v) end else raise "Warning: LTI XML config not configured for #{Rails.env})." end end end end
Version data entries
19 entries across 19 versions & 2 rubygems