Sha256: 79ef6d4777290e80fa66bf083484aa09d5696ef9cbe8c5563fc6aa532a12df21

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 KB

Contents

require 'bootstrap-sass'
require 'font-awesome-sass'
require 'jquery-rails'
require 'nprogress-rails'
require 'icheck-rails'
require 'momentjs-rails'
require 'bootstrap-daterangepicker-rails'
require 'fastclick-rails'
require 'chart-js-rails'
require 'flot-rails'
require 'datejs-rails'
require 'switchery-rails'
require 'select2-rails'
require 'parsley-rails'

module Gentelella
  class << self
    def load!
      register_rails_engine if rails?
    end

    def gem_path
      @gem_path ||= File.expand_path '..', File.dirname(__FILE__)
    end

    def stylesheets_path
      File.join assets_path, 'stylesheets'
    end

    def fonts_path
      File.join assets_path, 'fonts'
    end

    def javascripts_path
      File.join assets_path, 'javascripts'
    end

    def assets_path
      @assets_path ||= File.join gem_path, 'assets'
    end

    # Environment detection helpers
    def sprockets?
      defined?(::Sprockets)
    end

    def rails?
      defined?(::Rails)
    end

    private

    def register_rails_engine
      require 'gentelella/engine'
    end
  end
end

Gentelella.load!

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gentelella-rails-0.1.5 lib/gentelella-rails.rb
gentelella-rails-0.1.4 lib/gentelella-rails.rb