Sha256: 87c01d8411b20462d90b51185849813541ba76a93152d7a9aafe08603cac76f0

Contents?: true

Size: 676 Bytes

Versions: 12

Compression:

Stored size: 676 Bytes

Contents

%w(configuration_defaults installer).each do |lib|
  require "compass/app_integration/rails/#{lib}"
end

require 'compass/app_integration/rails/runtime' if defined?(ActionController::Base)


module Compass
  module AppIntegration
    module Rails

      extend self

      def installer(*args)
        Installer.new(*args)
      end

      def configuration
        Compass::Configuration::Data.new('rails').
          extend(ConfigurationDefaults)
      end

      def env
        if rails_env = (defined?(::Rails) ? ::Rails.env : (defined?(RAILS_ENV) ? RAILS_ENV : nil))
          rails_env.production? ? :production : :development
        end
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
compass-0.10.1 lib/compass/app_integration/rails.rb
compass-0.10.0 lib/compass/app_integration/rails.rb
compass-0.10.0.rc6 lib/compass/app_integration/rails.rb
compass-0.10.0.rc5 lib/compass/app_integration/rails.rb
compass-0.10.0.rc4 lib/compass/app_integration/rails.rb
compass-0.10.0.rc3 lib/compass/app_integration/rails.rb
compass-0.10.0.rc2 lib/compass/app_integration/rails.rb
compass-0.10.0.rc1 lib/compass/app_integration/rails.rb
compass-0.10.0.pre9 lib/compass/app_integration/rails.rb
compass-0.10.0.pre8 lib/compass/app_integration/rails.rb
compass-0.10.0.pre7 lib/compass/app_integration/rails.rb
compass-0.10.0.pre6 lib/compass/app_integration/rails.rb