require "modular/version" unless defined?(Sass) require 'sass' end module Modular if defined?(Rails) && defined?(Rails::Engine) class Engine < ::Rails::Engine require 'modular/engine' end else modular_path = File.expand_path("../../app/assets/stylesheets", __FILE__) ENV["SASS_PATH"] = [ENV["SASS_PATH"], modular_path].compact.join(File::PATH_SEPARATOR) end end