Sha256: 6aada0b11a574688bba91650d502dfa1af842c425637b9ca27633e63d23c3c0e

Contents?: true

Size: 994 Bytes

Versions: 7

Compression:

Stored size: 994 Bytes

Contents

unless defined?(Sass::RAILS_LOADED)
  Sass::RAILS_LOADED = true

  Sass::Plugin.options.merge!(:template_location => Haml::Util.rails_root + '/public/stylesheets/sass',
                              :css_location      => Haml::Util.rails_root + '/public/stylesheets',
                              :cache_location    => Haml::Util.rails_root + '/tmp/sass-cache',
                              :always_check      => Haml::Util.rails_env != "production",
                              :full_exception    => Haml::Util.rails_env != "production")

  if defined?(ActionDispatch::Callbacks) &&
      defined?(ActionDispatch::Callbacks.to_prepare)
    # Rails >= 3.0.0
    ActionDispatch::Callbacks.to_prepare(:sass_process) {Sass::Plugin.check_for_updates}
  else
    module ActionController
      class Base
        alias_method :sass_old_process, :process
        def process(*args)
          Sass::Plugin.check_for_updates
          sass_old_process(*args)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
radiantcms-couchrest_model-0.1.4 vendor/plugins/haml/lib/sass/plugin/rails.rb
radiant-0.9.1 vendor/plugins/haml/lib/sass/plugin/rails.rb
haml-2.2.24 lib/sass/plugin/rails.rb
haml-2.2.23 lib/sass/plugin/rails.rb
haml-2.2.22 lib/sass/plugin/rails.rb
haml-2.2.21 lib/sass/plugin/rails.rb
haml-2.2.20 lib/sass/plugin/rails.rb