Sha256: 883f4da1931fb775868b785b6aa1d8c9c69bc7cf4ebc9f0b21631194bbfac6b4

Contents?: true

Size: 882 Bytes

Versions: 17

Compression:

Stored size: 882 Bytes

Contents

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

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

  # :stopdoc:
  module ActionController
    class Base
      alias_method :sass_old_process, :process
      def process(*args)
        if !Sass::Plugin.checked_for_updates ||
            Sass::Plugin.options[:always_update] || Sass::Plugin.options[:always_check]
          Sass::Plugin.update_stylesheets
        end

        sass_old_process(*args)
      end
    end
  end
  # :startdoc:
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
gohanlonllc-haml-2.1.0.20080513000000 lib/sass/plugin/rails.rb
gohanlonllc-haml-2.1.0 lib/sass/plugin/rails.rb
haml-edge-2.1.10 lib/sass/plugin/rails.rb
haml-edge-2.1.11 lib/sass/plugin/rails.rb
haml-edge-2.1.12 lib/sass/plugin/rails.rb
haml-edge-2.1.17 lib/sass/plugin/rails.rb
haml-edge-2.1.18 lib/sass/plugin/rails.rb
haml-edge-2.1.19 lib/sass/plugin/rails.rb
haml-edge-2.1.21 lib/sass/plugin/rails.rb
haml-edge-2.1.16 lib/sass/plugin/rails.rb
haml-edge-2.1.13 lib/sass/plugin/rails.rb
haml-edge-2.1.14 lib/sass/plugin/rails.rb
haml-edge-2.1.15 lib/sass/plugin/rails.rb
haml-edge-2.1.20 lib/sass/plugin/rails.rb
haml-edge-2.1.9 lib/sass/plugin/rails.rb
haml-edge-2.1.7 lib/sass/plugin/rails.rb
haml-edge-2.1.8 lib/sass/plugin/rails.rb