Sha256: 8c553c9f3ba8bf53471034544c901d5d20828cc4be1bde8c3521dd348ac422d1

Contents?: true

Size: 236 Bytes

Versions: 7

Compression:

Stored size: 236 Bytes

Contents

require 'ahoy/version'
require 'ahoy'

module Ahoy
  def self.env
    env_file = YAML.load(File.open(Rails.root + ".env/#{Rails.env}_env.yml", 'r'))
    env_file.each { |k,v| ENV[k.to_s.upcase] = v.to_s } if env_file.present?
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails-ahoy-0.1.1 lib/ahoy.rb
rails-ahoy-0.1.0 lib/ahoy.rb
rails-ahoy-0.0.8 lib/ahoy.rb
rails-ahoy-0.0.7 lib/ahoy.rb
rails-ahoy-0.0.6 lib/ahoy.rb
rails-ahoy-0.0.5 lib/ahoy.rb
rails-ahoy-0.0.4 lib/ahoy.rb