Sha256: 2fd91c293b10b3ca93d316d15ac6d035c052a405d448f14c7e3b9c5151b454dd
Contents?: true
Size: 643 Bytes
Versions: 3
Compression:
Stored size: 643 Bytes
Contents
require 'rails' class ActionViewVersions < Rails::Railtie initializer "view_versions" do |app| ActiveSupport.on_load(:action_view) do if app.config.respond_to?(:view_versions) ActionView::Template::Versions.supported_version_numbers = app.config.view_versions end if app.config.respond_to?(:view_version_extraction_strategy) ActionView::Template::Versions.extraction_strategy = app.config.view_version_extraction_strategy end if app.config.respond_to?(:view_version_string) ActionView::Template::Versions.version_string = app.config.view_version_string end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
versioncake-1.0.0 | lib/versioncake/action_view/railtie.rb |
versioncake-0.5.0 | lib/versioncake/action_view/railtie.rb |
versioncake-0.4.0 | lib/versioncake/action_view/railtie.rb |