Sha256: 84ef5e513440d2c01e1e46192989b4626ac7f45a9ae68631e8e068c8e1fa4eb4

Contents?: true

Size: 853 Bytes

Versions: 118

Compression:

Stored size: 853 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")

  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
end

Version data entries

118 entries across 118 versions & 3 rubygems

Version Path
drnic-haml-2.3.1 lib/sass/plugin/rails.rb
haml-edge-2.3.71 lib/sass/plugin/rails.rb
haml-edge-2.3.70 lib/sass/plugin/rails.rb
haml-edge-2.3.69 lib/sass/plugin/rails.rb
haml-edge-2.3.68 lib/sass/plugin/rails.rb
haml-edge-2.3.67 lib/sass/plugin/rails.rb
haml-edge-2.3.66 lib/sass/plugin/rails.rb
haml-2.2.10 lib/sass/plugin/rails.rb
haml-edge-2.3.65 lib/sass/plugin/rails.rb
haml-edge-2.3.64 lib/sass/plugin/rails.rb
haml-edge-2.3.63 lib/sass/plugin/rails.rb
haml-edge-2.3.62 lib/sass/plugin/rails.rb
haml-edge-2.3.61 lib/sass/plugin/rails.rb
haml-edge-2.3.60 lib/sass/plugin/rails.rb
haml-edge-2.3.59 lib/sass/plugin/rails.rb
haml-edge-2.3.58 lib/sass/plugin/rails.rb
haml-edge-2.3.57 lib/sass/plugin/rails.rb
haml-edge-2.3.56 lib/sass/plugin/rails.rb
haml-edge-2.3.55 lib/sass/plugin/rails.rb
haml-edge-2.3.54 lib/sass/plugin/rails.rb