Sha256: e59ded1e2eecf2d36ec91849fb1a54d2a3067415d8436aba8b1d59adad284b5f

Contents?: true

Size: 829 Bytes

Versions: 5

Compression:

Stored size: 829 Bytes

Contents

# -*- encoding : utf-8 -*-
require 'rademade_admin/routing/mapper'
require 'simple_form'
require 'breadcrumbs'

module RademadeAdmin
  class Engine < ::Rails::Engine
    isolate_namespace RademadeAdmin

    config.assets.paths << "#{config.root}/vendor/assets/javascript/bower_components"

    initializer 'ckeditor.assets_precompile', :group => :all do |app|
      app.config.assets.precompile += %w( rademade_admin.css rademade_admin.js ckeditor/* )
    end

    $LOAD_PATH << "#{config.root}/app/services/"

    paths = %W(
      #{config.root}/app/helpers/**/*.rb
      #{config.root}/app/services/**/*.rb
      #{config.root}/app/cells/**/*.rb
      #{config.root}/app/inputs/**/*.rb
      #{config.root}/lib/rademade_admin/**/*.rb
    )

    paths.each do |path|
      Dir[path].each { |f| require f  }
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rademade_admin-0.2.1 lib/rademade_admin/engine.rb
rademade_admin-0.2.0 lib/rademade_admin/engine.rb
rademade_admin-0.1.6 lib/rademade_admin/engine.rb
rademade_admin-0.1.5 lib/rademade_admin/engine.rb
rademade_admin-0.1.4 lib/rademade_admin/engine.rb