Sha256: ebd7983a3ef028a7600c07ddaf9441751e6dcff77b8cd69e891eabe7fed3a2f3

Contents?: true

Size: 209 Bytes

Versions: 20

Compression:

Stored size: 209 Bytes

Contents

class PurlConfig
  @@config_info = nil
  def self.configure
    @@config_info ||= YAML.load(File.open(File.join(Rails.root, "config/purl.yml")))
  end

  def self.url
    configure[Rails.env]['url']
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
curate-0.6.6 app/models/purl_config.rb
curate-0.6.5 app/models/purl_config.rb
curate-0.6.4 app/models/purl_config.rb
curate-0.6.3 app/models/purl_config.rb
curate-0.6.1 app/models/purl_config.rb
curate-0.6.0 app/models/purl_config.rb
curate-0.5.6 app/models/purl_config.rb
curate-0.5.5 app/models/purl_config.rb
curate-0.5.4 app/models/purl_config.rb
curate-0.5.2 app/models/purl_config.rb
curate-0.5.1 app/models/purl_config.rb
curate-0.5.0 app/models/purl_config.rb
curate-0.4.2 app/models/purl_config.rb
curate-0.3.2 app/models/purl_config.rb
curate-0.3.1 app/models/purl_config.rb
curate-0.2.0 app/models/purl_config.rb
curate-0.1.3 app/models/purl_config.rb
curate-0.1.2 app/models/purl_config.rb
curate-0.1.1 app/models/purl_config.rb
curate-0.1.0 app/models/purl_config.rb