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