Skip to content

Commit

Permalink
Merge pull request #1137 from alphagov/remove-logic-from-gemfile
Browse files Browse the repository at this point in the history
Remove 'require' logic from Gemfile
  • Loading branch information
NickColley authored Sep 8, 2017
2 parents a3b275a + 8dda11a commit 3d42d38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ gem 'sass-rails', "5.0.6"
gem 'airbrake', github: 'alphagov/airbrake', branch: 'silence-dep-warnings-for-rails-5'
gem 'nokogiri', "~> 1.7"
gem 'redis', "~> 3.3.3"
gem 'govuk_publishing_components', '~> 1.4.0', require: ENV['RAILS_ENV'] != "production" || ENV['HEROKU_APP_NAME'].to_s.length > 0
gem 'govuk_publishing_components', '~> 1.4.0', require: false

group :development do
gem 'image_optim', '0.17.1'
Expand Down
4 changes: 4 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

if !Rails.env.production? || ENV['HEROKU_APP_NAME'].present?
require 'govuk_publishing_components'
end

module Static
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
Expand Down

0 comments on commit 3d42d38

Please sign in to comment.