Sha256: 3a1626196d07614d4b40f4ce300caa6f72997441b6d99f30ba513b42410693a5

Contents?: true

Size: 802 Bytes

Versions: 49

Compression:

Stored size: 802 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',
                              :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

49 entries across 49 versions & 11 rubygems

Version Path
haml-2.0.10 lib/sass/plugin/rails.rb
haml-2.0.3 lib/sass/plugin/rails.rb
haml-2.0.7 lib/sass/plugin/rails.rb
haml-edge-2.1.1 lib/sass/plugin/rails.rb
haml-2.0.5 lib/sass/plugin/rails.rb
haml-2.0.9 lib/sass/plugin/rails.rb
haml-2.0.4 lib/sass/plugin/rails.rb
haml-2.0.6 lib/sass/plugin/rails.rb
haml-1.8.2 lib/sass/plugin/rails.rb
haml-2.0.0 lib/sass/plugin/rails.rb
haml-2.0.1 lib/sass/plugin/rails.rb
haml-2.0.2 lib/sass/plugin/rails.rb
haml-2.0.8 lib/sass/plugin/rails.rb
haml-edge-2.1.3 lib/sass/plugin/rails.rb
haml-edge-2.1.2 lib/sass/plugin/rails.rb
haml-edge-2.1.5 lib/sass/plugin/rails.rb
haml-edge-2.1.4 lib/sass/plugin/rails.rb
haml-edge-2.1.6 lib/sass/plugin/rails.rb
mack-haml-0.8.3 lib/gems/haml-2.0.4/lib/sass/plugin/rails.rb
mack-haml-0.8.3.1 lib/gems/haml-2.0.4/lib/sass/plugin/rails.rb