Sha256: e32e23b1038d01964838643d85cd92f58de9f04a150e5d9380393a0a64995900

Contents?: true

Size: 914 Bytes

Versions: 21

Compression:

Stored size: 914 Bytes

Contents

unless defined?(Compass::RAILS_LOADED)
  Compass::RAILS_LOADED = true
  begin
    require 'action_pack/version'
    if ActionPack::VERSION::MAJOR >= 3
      # TODO figure something out so image_path works with rails integration
      %w(railtie).each do |lib|
        require "compass/app_integration/rails/actionpack3/#{lib}"
      end
    else
      %w(action_controller sass_plugin urls).each do |lib|
        require "compass/app_integration/rails/actionpack2/#{lib}"
      end
    end
  rescue LoadError => e
    $stderr.puts "Compass could not access the rails environment."
  rescue NameError => e
    $stderr.puts "Compass could not access the rails environment."
  end
  
  # Wierd that this has to be re-included to pick up sub-modules. Ruby bug?
  class Sass::Script::Functions::EvaluationContext
    include Sass::Script::Functions
    private
    include ActionView::Helpers::AssetTagHelper
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
radiant-1.0.0 ruby-debug/ruby/1.8/gems/compass-0.11.7/lib/compass/app_integration/rails/runtime.rb
compass-0.11.7 lib/compass/app_integration/rails/runtime.rb
compass-0.11.6 lib/compass/app_integration/rails/runtime.rb
compass-0.11.5 lib/compass/app_integration/rails/runtime.rb
compass-0.11.4 lib/compass/app_integration/rails/runtime.rb
compass-0.11.3 lib/compass/app_integration/rails/runtime.rb
compass-0.11.2 lib/compass/app_integration/rails/runtime.rb
compass-0.11.1 lib/compass/app_integration/rails/runtime.rb
compass-0.11.0 lib/compass/app_integration/rails/runtime.rb
compass-0.11.beta.7 lib/compass/app_integration/rails/runtime.rb
compass-0.11.beta.6 lib/compass/app_integration/rails/runtime.rb
compass-0.11.beta.5 lib/compass/app_integration/rails/runtime.rb
compass-0.11.beta.4 lib/compass/app_integration/rails/runtime.rb
compass-0.11.beta.3 lib/compass/app_integration/rails/runtime.rb
compass-0.11.beta.2 lib/compass/app_integration/rails/runtime.rb
compass-0.11.beta.1 lib/compass/app_integration/rails/runtime.rb
compass-0.11.beta.0 lib/compass/app_integration/rails/runtime.rb
compass-0.11.alpha.4 lib/compass/app_integration/rails/runtime.rb
compass-0.11.alpha.3 lib/compass/app_integration/rails/runtime.rb
compass-0.11.alpha.1 lib/compass/app_integration/rails/runtime.rb