Sha256: 0e684e923da42cf93777600479d1b135790172157977f62872f1d42a4aef8253
Contents?: true
Size: 804 Bytes
Versions: 2
Compression:
Stored size: 804 Bytes
Contents
module Workarea module Api module Admin class Engine < ::Rails::Engine include Workarea::Plugin isolate_namespace Workarea::Api::Admin # Depending on plugin loading order, to_prepare may cause an autoload of # {ApplicationDocument}s so make sure we add this dependency before # `config.to_prepare` initializer 'workarea.api.admin.date_filtering' do Workarea::ApplicationDocument.include(DateFiltering) end config.after_initialize do Workarea::Api::Admin::Swagger.generate! Workarea::Api::Admin::DateIndexes.load end config.to_prepare do ApplicationDocument.include(DateFiltering) Workarea::Api::Admin::DateIndexes.load end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
workarea-api-4.5.6 | admin/lib/workarea/api/admin/engine.rb |
workarea-api-admin-4.5.6 | lib/workarea/api/admin/engine.rb |