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

Version Path
radiant-1.0.0.rc1 vendor/plugins/haml/lib/haml/railtie.rb
haml-3.0.25 lib/haml/railtie.rb
radiantcms-couchrest_model-0.1.3 vendor/plugins/haml/lib/haml/railtie.rb
radiantcms-couchrest_model-0.1.2 vendor/plugins/haml/lib/haml/railtie.rb
radiantcms-couchrest_model-0.1.1 vendor/plugins/haml/lib/haml/railtie.rb
radiantcms-couchrest_model-0.1 vendor/plugins/haml/lib/haml/railtie.rb
haml-3.0.24 lib/haml/railtie.rb
haml-3.0.23 lib/haml/railtie.rb
haml-3.0.22 lib/haml/railtie.rb
haml-3.0.21 lib/haml/railtie.rb
haml-edge-3.1.79 lib/haml/railtie.rb
haml-edge-3.1.78 lib/haml/railtie.rb
haml-edge-3.1.77 lib/haml/railtie.rb
haml-edge-3.1.76 lib/haml/railtie.rb
haml-edge-3.1.75 lib/haml/railtie.rb
haml-edge-3.1.74 lib/haml/railtie.rb
haml-edge-3.1.73 lib/haml/railtie.rb
haml-edge-3.1.72 lib/haml/railtie.rb
haml-edge-3.1.71 lib/haml/railtie.rb
haml-3.0.18 lib/haml/railtie.rb