Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Final traces of Rails 2.3 code.

  • Loading branch information...
commit 0f3fb88fcd11368e25c42fb97f9437310a2e2e9a 1 parent 90edecb
@craigmcnamara craigmcnamara authored
View
1  lib/compass-rails.rb
@@ -7,7 +7,6 @@ module CompassRails
RAILS_4 = %r{^4.[0|1]}
RAILS_32 = %r{^3.2}
RAILS_31 = %r{^3.1}
- RAILS_23 = %r{^2.3}
RAILS_3 = %r{^3.0}
extend self
View
56 lib/compass-rails/railties/2_3.rb
@@ -1,56 +0,0 @@
-#rails 2.x doesn't have railties so gona do this the long way
-require "sass/plugin/rack" #unless defined?(Sass::Plugin::Rack)
-
-module ActionController
- class Base
- def process_with_compass(*args)
- Sass::Plugin.rails_controller = self
- begin
- process_without_compass(*args)
- ensure
- Sass::Plugin.rails_controller = nil
- end
- end
- alias_method_chain :process, :compass
- end
-end
-
-
-module Sass::Plugin
- class << self
- attr_accessor :rails_controller
- end
-end
-
-module Compass::SassExtensions::Functions::Urls::ImageUrl
- def image_url_with_rails_integration(path, only_path = Sass::Script::Bool.new(false), cache_buster = Sass::Script::Bool.new(true))
- if (@controller = Sass::Plugin.rails_controller) && @controller.respond_to?(:request) && @controller.request
- begin
- if only_path.to_bool
- Sass::Script::String.new image_path(path.value)
- else
- Sass::Script::String.new "url(#{image_path(path.value)})"
- end
- ensure
- @controller = nil
- end
- else
- image_url_without_rails_integration(path, only_path, cache_buster)
- end
- end
- alias_method_chain :image_url, :rails_integration
-end
-
-
-class Sass::Script::Functions::EvaluationContext
- include Sass::Script::Functions
- private
- include ActionView::Helpers::AssetTagHelper
-end
-
-unless Compass.detect_configuration_file.nil?
- Compass.add_configuration(CompassRails.configuration)
- CompassRails.initialize!
-else
- CompassRails.initialize!(CompassRails.configuration)
-end
View
10 test/helpers/rails_project.rb
@@ -103,16 +103,6 @@ def set_rails(property, value)
inject_into_file(directory.join(APPLICATION_FILE), value, :after, 'class Application < Rails::Application')
end
- ## GEM METHODS
-
- def configure_for_bundler!
- Rails.logger.warn("This method is deprecated") && return
- end
-
- def bundle
- raise "NO BUNDLE FOR U"
- end
-
private
## GEM METHODS
Please sign in to comment.
Something went wrong with that request. Please try again.