Sha256: c077391025f790ab4d0ce965871b1d2dc279fe7c0231d4343a9445d954e517d1
Contents?: true
Size: 514 Bytes
Versions: 4
Compression:
Stored size: 514 Bytes
Contents
if defined?(ActiveSupport) require 'haml/template/options' ActiveSupport.on_load(:before_initialize) do ActiveSupport.on_load(:action_view) do require "haml/template" end end end module Haml class Railtie < ::Rails::Railtie initializer :haml do |app| if defined?(::Sass::Rails) && app.config.assets.enabled require "haml/sass_rails_filter" end end end end require "haml/helpers/safe_erubis_template" Haml::Filters::Erb.template_class = Haml::SafeErubisTemplate
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
haml-4.0.0 | lib/haml/railtie.rb |
haml-4.0.0.rc.1 | lib/haml/railtie.rb |
haml-3.2.0.rc.4 | lib/haml/railtie.rb |
haml-3.2.0.rc.3 | lib/haml/railtie.rb |