lib/requirejs/rails/engine.rb in requirejs-rails-0.7.1 vs lib/requirejs/rails/engine.rb in requirejs-rails-0.7.2
- old
+ new
@@ -23,13 +23,11 @@
end
end
config.before_initialize do |app|
config = app.config
- if ::Rails.env == "production"
- config.assets.precompile += config.requirejs.precompile
- end
+ config.assets.precompile += config.requirejs.precompile
manifest_path = File.join(::Rails.public_path, config.assets.prefix, "rjs_manifest.yml")
config.requirejs.manifest_path = Pathname.new(manifest_path)
end
@@ -47,9 +45,9 @@
if config.requirejs.manifest_path.exist? && config.assets.digests
rjs_digests = YAML.load_file(config.requirejs.manifest_path)
config.assets.digests.merge!(rjs_digests)
end
end
-
+
end # class Engine
end
end