lib/webpacker/env.rb in webpacker-3.3.1 vs lib/webpacker/env.rb in webpacker-3.4.0
- old
+ new
@@ -16,14 +16,14 @@
(current || DEFAULT).inquiry
end
private
def current
- (ENV["NODE_ENV"] || Rails.env).presence_in(available_environments)
+ Rails.env.presence_in(available_environments)
end
def fallback_env_warning
- logger.info "NODE_ENV=#{ENV["NODE_ENV"]} and RAILS_ENV=#{Rails.env} environment is not defined in config/webpacker.yml, falling back to #{DEFAULT} environment"
+ logger.info "RAILS_ENV=#{Rails.env} environment is not defined in config/webpacker.yml, falling back to #{DEFAULT} environment"
end
def available_environments
if config_path.exist?
YAML.load(config_path.read).keys