Sha256: c714cd21b9b05d05d7b50e5dad365b2d6f721a802c9de028516f95bdf36c4982

Contents?: true

Size: 912 Bytes

Versions: 12

Compression:

Stored size: 912 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::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

12 entries across 12 versions & 3 rubygems

Version Path
middleman-0.10.17 vendor/gems/gems/haml-2.2.13/lib/sass/plugin/rails.rb
middleman-0.10.16 vendor/gems/gems/haml-2.2.13/lib/sass/plugin/rails.rb
middleman-0.10.15 vendor/gems/gems/haml-2.2.13/lib/sass/plugin/rails.rb
middleman-0.10.14 vendor/gems/gems/haml-2.2.13/lib/sass/plugin/rails.rb
haml-edge-2.3.80 lib/sass/plugin/rails.rb
haml-edge-2.3.79 lib/sass/plugin/rails.rb
haml-edge-2.3.78 lib/sass/plugin/rails.rb
haml-2.2.13 lib/sass/plugin/rails.rb
haml-edge-2.3.77 lib/sass/plugin/rails.rb
haml-edge-2.3.76 lib/sass/plugin/rails.rb
haml-edge-2.3.75 lib/sass/plugin/rails.rb
haml-2.2.12 lib/sass/plugin/rails.rb