Sha256: 1c5259e9c903bd3842eeaa2531b637b9605abccfdc22bf93ba34a7d9d2c53f11
Contents?: true
Size: 1.7 KB
Versions: 8
Compression:
Stored size: 1.7 KB
Contents
require 'express_admin/menu' require 'express_admin/version' require 'express_admin/standard_actions' require 'express_admin/search' require 'express_templates' require 'jquery-rails' require 'jquery-ui-rails' require 'select2-rails' require 'dropzonejs-rails' require 'sass-rails' require 'foundation_apps_styles' require 'gravatar_image_tag' require 'kaminari' require 'responders' require 'tinymce-rails' require 'textacular' # helpers for the components helpers = Dir.glob(File.join(File.dirname(__FILE__), '..', '..', 'app', 'components', 'express_admin', 'helpers', '*.rb')) helpers.each {|helper| require helper } require File.join(File.dirname(__FILE__), '..', '..', 'app', 'components', 'express_admin', 'definition_list') # should be a way to add this folder to rails' autoload paths components = Dir.glob(File.join(File.dirname(__FILE__), '..', '..', 'app', 'components', '**', '*.rb')) components.sort! components.each {|component| require component } module ExpressAdmin class Engine < ::Rails::Engine initializer :assets do |config| Rails.application.config.assets.precompile << /\.(?:svg|eot|woff|ttf|png|jpg|jpeg|gif)$/ Rails.application.config.assets.precompile += %w( express_admin.js express_admin.css ) end def all_rails_engines Rails.application.eager_load! @all_engines ||= ::Rails::Engine.descendants end # Find all the rails engines that have # :addon_name presumably from including # ExpressAdmin::Menu::Loader def all_addons @all_addons ||= all_rails_engines.select do |engine| engine.methods.include?(:addon_name) end end end class Railtie < ::Rails::Railtie config.app_generators.template_engine :et end end
Version data entries
8 entries across 8 versions & 1 rubygems