Skip to content

Commit

Permalink
Support Rails 4.2 / Sprockets 3+
Browse files Browse the repository at this point in the history
Fixes `undefined method 'register_postprocessor' for nil:NilClass` when using guard-jasmine with Rails 4.2+
  • Loading branch information
neilgupta committed Aug 16, 2016
1 parent 0391743 commit 387cf4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/guard/jasmine/coverage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ def self.coverage_bin
#
class GuardJasmineCoverageEngine < ::Rails::Engine
initializer 'guard-jasmine.initialize' do |app|
app.assets.register_postprocessor 'application/javascript', JasmineCoverage
app.config.assets.configure do |env|
env.register_postprocessor 'application/javascript', JasmineCoverage
end
end
end

Expand Down

0 comments on commit 387cf4b

Please sign in to comment.