Sha256: 624195e01f1d5ec051ebde9a8f5cc26cae4c5c58c05a959f4877b909037c4177

Contents?: true

Size: 657 Bytes

Versions: 2

Compression:

Stored size: 657 Bytes

Contents

# CodeKit needs relative paths
dir = File.dirname(__FILE__)
$LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)

require "modular/generator"

unless defined?(Sass)
  require 'sass'
end

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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
modular-grid-0.0.15 lib/modular.rb
modular-grid-0.0.14 lib/modular.rb