lib/evercookie/engine.rb in evercookie-0.0.4 vs lib/evercookie/engine.rb in evercookie-0.0.5
- old
+ new
@@ -3,10 +3,10 @@
module Rails
# adds additional things to rails engine
class Engine < ::Rails::Engine
# adds ec.js to be precompiled
initializer "evercookie precompile hook" do |app|
- app.config.assets.precompile += %w(ec.js)
+ app.config.assets.precompile << /ec\.js/
end
# registers view helpers
config.after_initialize do
ActionView::Base.send(:include, Evercookie::ViewHelper)
\ No newline at end of file