Sha256: c7337cf8da1de5c9ea39dcb013e50f9653fa0ecd5cc5606647ef1bb7efb9fc6b
Contents?: true
Size: 615 Bytes
Versions: 245
Compression:
Stored size: 615 Bytes
Contents
dir = File.dirname(__FILE__) $LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir) require "smock/generator" unless defined?(Sass) require 'sass' end module Smock if defined?(Rails) && defined?(Rails::Engine) class Engine < ::Rails::Engine require 'smock/engine' end module Rails class Railtie < ::Rails::Railtie rake_tasks do load "tasks/install.rake" end end end else smock_path = File.expand_path("../../app/assets/stylesheets", __FILE__) ENV["SASS_PATH"] = [ENV["SASS_PATH"], smock_path].compact.join(File::PATH_SEPARATOR) end end
Version data entries
245 entries across 245 versions & 1 rubygems