Sha256: a62559fc1fe8519a0ebc62b9962a58ca3d95d8d64a30856c51712c5cee5ca182

Contents?: true

Size: 204 Bytes

Versions: 14

Compression:

Stored size: 204 Bytes

Contents

module Speedos
  module Configuration
    def self.app_env
      ENV['APP_ENV'] || 'development'
    end

    def self.load_mongoid_config path
      Mongoid.load!(path, app_env.to_sym)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
speedos-0.0.14 lib/speedos/configuration.rb
speedos-0.0.13 lib/speedos/configuration.rb
speedos-0.0.12 lib/speedos/configuration.rb
speedos-0.0.11 lib/speedos/configuration.rb
speedos-0.0.10 lib/speedos/configuration.rb
speedos-0.0.9 lib/speedos/configuration.rb
speedos-0.0.8 lib/speedos/configuration.rb
speedos-0.0.7 lib/speedos/configuration.rb
speedos-0.0.6 lib/speedos/configuration.rb
speedos-0.0.5 lib/speedos/configuration.rb
speedos-0.0.4 lib/speedos/configuration.rb
speedos-0.0.3 lib/speedos/configuration.rb
speedos-0.0.2 lib/speedos/configuration.rb
speedos-0.0.1 lib/speedos/configuration.rb