Sha256: e32f0ea0751063824d831f2a4c99098a1af0894824c73fa774d988f1c0923bb2

Contents?: true

Size: 359 Bytes

Versions: 2

Compression:

Stored size: 359 Bytes

Contents

require "psenv"

if defined?(Rake.application)
  is_running_specs = Rake.application.top_level_tasks.grep(/^spec(:|$)/).any?
  Rails.env = ENV["RAILS_ENV"] ||= "test" if is_running_specs
end

module Psenv
	class Railtie < Rails::Railtie
		def load
			Psenv.load
		end

		def self.load
			instance.load
		end

    config.before_configuration { load }
	end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
psenv-rails-0.0.1 lib/psenv-rails.rb
psenv-0.0.1 lib/psenv-rails.rb