Sha256: 967f63b48369a3714e11d12c5bf66b420668b93763fe779c403112a7bd61ff1c

Contents?: true

Size: 1.15 KB

Versions: 10

Compression:

Stored size: 1.15 KB

Contents

require 'admin_lte-rails/version'

module AdminLte

  def self.gem_path
    Pathname(File.realpath(__FILE__)).join('../..')
  end

  def self.gem_spec
    Gem::Specification::load(
      gem_path.join("admin_lte.gemspec").to_s
    )
  end

  def self.load_paths
    gem_path.join('app/assets').each_child.to_a
  end

  def self.dependencies
    ['rails-assets-admin-lte']
  end

  if defined?(Rails)
    class Engine < ::Rails::Engine
      # Rails -> use app/assets directory.
    end
  end

end

class RailsAssets
  @components ||= []

  class << self
    attr_accessor :components

    def load_paths
      components.flat_map(&:load_paths)
    end
  end
end

RailsAssets.components << AdminLte

require 'bootstrap-sass'
require 'rails-assets-bootstrap-rtl'
require 'jquery-rails'
require 'font-awesome-rails'
require 'jquery-ui-rails'
require 'select2-rails'
require 'momentjs-rails'
require 'chart-js-rails'
require 'ionicons-rails'
require 'bootstrap3-datetimepicker-rails'

require 'rails-assets-jquery-knob'
require 'rails-assets-bootstrap-daterangepicker'
require 'rails-assets-jquery-sparkline'
require 'rails-assets-jquery-icheck'
require 'rails-assets-admin-lte'

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
admin_lte-rails-2.3.8.3 lib/admin_lte-rails.rb
admin_lte-rails-2.3.8.2 lib/admin_lte-rails.rb
admin_lte-rails-2.3.2.3 lib/admin_lte-rails.rb
admin_lte-rails-2.3.8.1 lib/admin_lte-rails.rb
admin_lte-rails-2.3.2.2 lib/admin_lte-rails.rb
admin_lte-rails-2.3.0.3 lib/admin_lte-rails.rb
admin_lte-rails-2.3.2.1 lib/admin_lte-rails.rb
admin_lte-rails-2.2.0.9 lib/admin_lte-rails.rb
admin_lte-rails-2.2.0.8 lib/admin_lte-rails.rb
admin_lte-rails-2.2.0.7 lib/admin_lte-rails.rb