Sha256: d3a2530a532dc8a8f7c55ffaa6b85d9ca1cc7de58225e1cbc3295e65ea280459
Contents?: true
Size: 608 Bytes
Versions: 55
Compression:
Stored size: 608 Bytes
Contents
if Haml::Util.ap_geq_3? && !Haml::Util.ap_geq?("3.0.0.beta4") raise <<ERROR Haml and Sass no longer support Rails 3 versions before beta 4. Please upgrade to Rails 3.0.0.beta4 or later. ERROR end # Rails 3.0.0.beta.2+ if defined?(ActiveSupport) && Haml::Util.has?(:public_method, ActiveSupport, :on_load) require 'haml/template/options' require 'sass/plugin/configuration' ActiveSupport.on_load(:before_initialize) do require 'sass' require 'sass/plugin' # Haml requires AV, but Sass doesn't ActiveSupport.on_load(:action_view) do Haml.init_rails(binding) end end end
Version data entries
55 entries across 55 versions & 4 rubygems