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
haml-edge-3.1.70 lib/haml/railtie.rb
haml-edge-3.1.69 lib/haml/railtie.rb
haml-edge-3.1.68 lib/haml/railtie.rb
haml-edge-3.1.67 lib/haml/railtie.rb
haml-edge-3.1.66 lib/haml/railtie.rb
haml-edge-3.1.65 lib/haml/railtie.rb
haml-edge-3.1.64 lib/haml/railtie.rb
haml-3.0.17 lib/haml/railtie.rb
haml-edge-3.1.63 lib/haml/railtie.rb
haml-edge-3.1.62 lib/haml/railtie.rb
haml-edge-3.1.61 lib/haml/railtie.rb
haml-edge-3.1.60 lib/haml/railtie.rb
haml-edge-3.1.59 lib/haml/railtie.rb
haml-3.0.16 lib/haml/railtie.rb
haml-edge-3.1.58 lib/haml/railtie.rb
haml-edge-3.1.57 lib/haml/railtie.rb
haml-edge-3.1.56 lib/haml/railtie.rb
haml-edge-3.1.55 lib/haml/railtie.rb
haml-edge-3.1.54 lib/haml/railtie.rb
haml-edge-3.1.53 lib/haml/railtie.rb