Sha256: 236ba695528b4e2d8ae50730a00c4fcfc6b83d3ce1c96ba6e87b7551c8b05f8f

Contents?: true

Size: 317 Bytes

Versions: 94

Compression:

Stored size: 317 Bytes

Contents

class LoadConfig
  def self.docs_base_path
    Rails.configuration.docs_base_path || '.'
  end

  def self.load_file(file_path)
    full_path = "#{docs_base_path}/#{file_path}"
    if File.exist?(full_path)
      YAML.load_file(full_path)
    else
      YAML.load_file("#{Rails.root}/#{file_path}")
    end
  end
end

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
station-0.5.16 lib/nexmo_developer/app/services/load_config.rb
station-0.5.15 lib/nexmo_developer/app/services/load_config.rb
station-0.5.14 lib/nexmo_developer/app/services/load_config.rb
station-0.5.13 lib/nexmo_developer/app/services/load_config.rb
station-0.5.12 lib/nexmo_developer/app/services/load_config.rb
station-0.5.11 lib/nexmo_developer/app/services/load_config.rb
station-0.5.10 lib/nexmo_developer/app/services/load_config.rb
station-0.5.9 lib/nexmo_developer/app/services/load_config.rb
station-0.5.8 lib/nexmo_developer/app/services/load_config.rb
station-0.5.7 lib/nexmo_developer/app/services/load_config.rb
station-0.5.6 lib/nexmo_developer/app/services/load_config.rb
station-0.5.5 lib/nexmo_developer/app/services/load_config.rb
station-0.5.4 lib/nexmo_developer/app/services/load_config.rb
station-0.5.3 lib/nexmo_developer/app/services/load_config.rb
station-0.5.2 lib/nexmo_developer/app/services/load_config.rb
station-0.5.1 lib/nexmo_developer/app/services/load_config.rb
station-0.5.0 lib/nexmo_developer/app/services/load_config.rb
station-0.4.9 lib/nexmo_developer/app/services/load_config.rb
station-0.4.8 lib/nexmo_developer/app/services/load_config.rb
station-0.4.7 lib/nexmo_developer/app/services/load_config.rb