Sha256: 8adfb8d8f3fbf3281870b27254eb67d62e9ae65e7e6e7bb4089b840885f890e8

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 Bytes

Contents

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

      task :environment => :dotenv
    end

    initializer 'dotenv', :group => :all do
      Dotenv.load ".env.#{Rails.env}", '.env'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dotenv-0.3.0 lib/dotenv/railtie.rb