lib/rev_manifest/railtie.rb in actionview-rev_manifest-0.2.1 vs lib/rev_manifest/railtie.rb in actionview-rev_manifest-0.2.2
- old
+ new
@@ -1,13 +1,16 @@
+require "rev_manifest/helper"
+
module RevManifest
class Railtie < ::Rails::Railtie
config.rev_manifest = ActiveSupport::OrderedOptions.new
- config.rev_manifest.enabled = false
+ config.rev_manifest.enable = false
config.rev_manifest.sources = :all
initializer "rev_manifest.config", group: :all do |app|
- RevManifest.enabled = app.config.rev_manifest.enabled
+ RevManifest.enabled = app.config.rev_manifest.enable
RevManifest.sources = app.config.rev_manifest.sources
+ ActionView::Base.send(:prepend, RevManifest::Helper)
end
end
end