Sha256: 9eebc40ae02ba6445b6fcfe1780097fcda9763becab3cc15000ee38084f70352
Contents?: true
Size: 992 Bytes
Versions: 11
Compression:
Stored size: 992 Bytes
Contents
require 'rails/engine' require_relative 'server/version' module Smartkiosk module Server def self.revision file = File.expand_path '../../../REVISION' File.exist?(file) ? File.read(file).strip : nil end class Engine < ::Rails::Engine initializer 'matrioshka', :before => :set_autoload_paths do |app| # Rails app.class.configure do config.i18n.load_path += Dir[Smartkiosk::Server::Engine.root.join(*%w(config locales *.{rb,yml})).to_s] config.autoload_paths += %W(#{Smartkiosk::Server::Engine.root.join 'lib'}) config.paths['db/migrate'] += Smartkiosk::Server::Engine.paths['db/migrate'].existent end # ActiveAdmin ActiveAdmin.setup do |config| config.load_paths << Smartkiosk::Server::Engine.root.join('app/admin') end # TODO: Remove this as soon as AA fixed config.after_initialize do I18n.reload! end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems