lib/guard/rails-assets/cli_runner.rb in guard-rails-assets-0.0.6 vs lib/guard/rails-assets/cli_runner.rb in guard-rails-assets-0.0.7

- old
+ new

@@ -1,10 +1,11 @@ module Guard class RailsAssets::CliRunner - def initialize(options) + def initialize(options={}) + @rails_env = (options[:rails_env] || 'test').to_s end def compile_assets - system "bundle exec rake assets:clean assets:precompile" + system "RAILS_ENV=#{@rails_env} bundle exec rake assets:clean assets:precompile" end end end