Skip to content

Commit

Permalink
Merge pull request #252 from alphagov/fix-publisher-deployes
Browse files Browse the repository at this point in the history
Correcting Bundler.require in application.rb
  • Loading branch information
alext committed Sep 8, 2014
2 parents f20d95f + 2bcd669 commit 34556c2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
require "rails/test_unit/railtie"
require "sprockets/railtie"

# If you have a Gemfile, require the gems listed there, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env) if defined?(Bundler)
if defined?(Bundler)
# If you precompile assets before deploying to production, use this line
Bundler.require(*Rails.groups(:assets => %w(development test)))
# If you want your assets lazily compiled in production, use this line
# Bundler.require(:default, :assets, Rails.env)
end

module Publisher
class Application < Rails::Application
Expand Down

0 comments on commit 34556c2

Please sign in to comment.