Repository URL to install this package:
|
Version:
2.2 ▾
|
require 'sass' unless defined?(Sass)
require 'elements/version'
# Main entry-point which configures as an Engine or sets the SASS_PATH.
module Elements
if defined?(Rails) && defined?(Rails::Engine)
class Engine < ::Rails::Engine
end
else
# from: https://github.com/thoughtbot/bourbon/blob/d3b3ace41b96b2ad0c9c2ebbc0f913a54b6b664b/lib/bourbon.rb
elements_path = File.expand_path('../../app/assets/stylesheets', __FILE__)
ENV['SASS_PATH'] = [ENV['SASS_PATH'],
elements_path].compact.join(File::PATH_SEPARATOR)
end
end