Sha256: a3f569a94b033d7fda7e736c17c8c4fa29f6c6fd65bde55d61f331db7017eb1e

Contents?: true

Size: 271 Bytes

Versions: 6

Compression:

Stored size: 271 Bytes

Contents

require 'dotenv'

module Dotenv
  class Railtie < Rails::Railtie
    rake_tasks do
      desc 'Load environment settings from .env'
      task :dotenv do
        Dotenv.load ".env.#{Rails.env}", '.env'
      end
    end
  end
end

Dotenv.load ".env.#{Rails.env}", '.env'

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
dotenv-0.10.0 lib/dotenv/railtie.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/dotenv-0.9.0/lib/dotenv/railtie.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/dotenv-0.9.0/lib/dotenv/railtie.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/dotenv-0.9.0/lib/dotenv/railtie.rb
dotenv-0.9.0 lib/dotenv/railtie.rb
dotenv-0.8.0 lib/dotenv/railtie.rb