Sha256: 55612f4bb6a9197cf9c920bd600d78ec8e8cf667ef190319ff2cbdf9745836d0

Contents?: true

Size: 927 Bytes

Versions: 16

Compression:

Stored size: 927 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      => RAILS_ENV != "production",
                              :full_exception    => RAILS_ENV != "production")

  if 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

16 entries across 15 versions & 4 rubygems

Version Path
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.9.1/gems/haml-2.2.17/lib/sass/plugin/rails.rb
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.8/gems/haml-2.2.17/lib/sass/plugin/rails.rb
haml-2.2.17 lib/sass/plugin/rails.rb
middleman-0.12.2 lib/middleman/vendor/gems/gems/haml-2.2.16/lib/sass/plugin/rails.rb
simple-templater-0.0.1.4 gems/gems/haml-2.2.16/lib/sass/plugin/rails.rb
haml-2.2.16 lib/sass/plugin/rails.rb
middleman-0.12.1 lib/middleman/vendor/gems/gems/haml-2.2.15/lib/sass/plugin/rails.rb
middleman-0.12.0.pre3 lib/middleman/vendor/gems/gems/haml-2.2.15/lib/sass/plugin/rails.rb
middleman-0.12.0.pre2 lib/middleman/vendor/gems/gems/haml-2.2.15/lib/sass/plugin/rails.rb
haml-2.2.15 lib/sass/plugin/rails.rb
middleman-0.12.0.pre lib/middleman/vendor/gems/gems/haml-2.2.14/lib/sass/plugin/rails.rb
haml-2.2.14 lib/sass/plugin/rails.rb
haml-edge-2.3.84 lib/sass/plugin/rails.rb
haml-edge-2.3.83 lib/sass/plugin/rails.rb
haml-edge-2.3.82 lib/sass/plugin/rails.rb
haml-edge-2.3.81 lib/sass/plugin/rails.rb