lib/modular.rb in modular-grid-0.0.6 vs lib/modular.rb in modular-grid-0.0.7

- old
+ new

@@ -1,19 +1,9 @@ require "modular/version" module Modular - # if defined?(Rails) && defined?(Rails::Engine) - # class Engine < ::Rails::Engine - # require 'modular/engine' - # end - # module Rails - # class Railtie < ::Rails::Railtie - # rake_tasks do - # load "tasks/install.rake" - # end - # end - # 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 + if defined?(Rails) && defined?(Rails::Engine) + class Engine < ::Rails::Engine + require 'modular/engine' + end + end end