Sha256: 871bc2adaf67a60afa65c602ed135f867386df046e5156d2919b86d81183d789

Contents?: true

Size: 570 Bytes

Versions: 2

Compression:

Stored size: 570 Bytes

Contents

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

require "minable/generator"

unless defined?(Sass)
  require 'sass'
end

module Minable
  if defined?(Rails) && defined?(Rails::Engine)
    class Engine < ::Rails::Engine
      require 'minable/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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
minable-0.0.2 lib/minable.rb
minable-0.0.1 lib/minable.rb