Sha256: ffb1ed128ee24cac81d33b2f39eb3f35b5d0e942e85176ac64b58d250b546c95
Contents?: true
Size: 997 Bytes
Versions: 2
Compression:
Stored size: 997 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').to_s end # TODO: Remove this as soon as AA fixed config.after_initialize do I18n.reload! end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smartkiosk-server-0.10.9 | lib/smartkiosk/server.rb |
smartkiosk-server-0.10.8 | lib/smartkiosk/server.rb |