module Haml
def self.init_rails(binding)
-
binding
(Binding
) -- The context of the `init.rb` file.
def self.init_rails(binding) # 2.2 <= Rails < 3 if defined?(Rails) && Rails.respond_to?(:configuration) && Rails.configuration.respond_to?(:after_initialize) && !Haml::Util.ap_geq_3? Rails.configuration.after_initialize do next if defined?(Sass) autoload(:Sass, 'sass/rails2_shim') # resolve autoload if it looks like they're using Sass without options Sass if File.exist?(File.join(RAILS_ROOT, 'public/stylesheets/sass')) end end # No &method here for Rails 2.1 compatibility %w[haml/template].each {|f| require f} end