lib/guard/rails-assets.rb in guard-rails-assets-0.0.3 vs lib/guard/rails-assets.rb in guard-rails-assets-0.0.4
- old
+ new
@@ -32,14 +32,12 @@
else
Notifier::notify 'see the details in the terminal', :title => "Can't compile assets", :image => :failed
end
end
- private
-
def run_for? command
run_on = @options[:run_on]
- run_on = [:start, :change] if not run_on or run_on.empty?
+ run_on = [:start, :change] if not run_on or run_on.to_s.empty?
run_on = [run_on] unless run_on.respond_to?(:include?)
run_on.include?(command)
end
end
end