Sha256: cd9d87d0445b0f3a55f5ab4e0590e991b5d7dcf68e6f5b24970bb4193fe8755c
Contents?: true
Size: 791 Bytes
Versions: 19
Compression:
Stored size: 791 Bytes
Contents
module CompassRails class Installer < Compass::Installers::ManifestInstaller SASS_FILE_REGEX = %r{(.*)(?:\.css)?\.(sass|scss)} def completed_configuration @completed_configuration ||= CompassRails.configuration end def install_stylesheet(from, to, options) if CompassRails.rails_loaded? && CompassRails.asset_pipeline_enabled? _, name, ext = SASS_FILE_REGEX.match(to).to_a to = "#{name}.css.#{ext}" end super(from, to, options) end def write_configuration_files config_file = CompassRails.root.join('config', 'compass.rb') unless config_file.exist? write_file config_file.to_s, CompassRails.configuration.serialize end end def prepare write_configuration_files end end end
Version data entries
19 entries across 19 versions & 1 rubygems