dir = File.dirname(__FILE__) $LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir) require 'tartan/generator' unless defined?(Sass) require 'sass' end module Tartan if defined?(Rails) && defined?(Rails::Engine) class Engine < ::Rails::Engine require 'tartan/engine' end module Rails class Railtie < ::Rails::Railtie rake_tasks do load "tasks/install.rake" end end end else Sass.load_paths << File.expand_path("../../app/assets/stylesheets", __FILE__) end end