3 cattr_accessor :manifest
4 attr :list_groups, :profilers, :filers, :forms
5 # call me before load routes.rb
6 # routes.rb needs engine_resources manifest in system_resources
7 # ex. it's adding license_groups routes
8 def initialize local_json
9 @local_json = local_json || {}
13 # managers can't initialize before load application.rb
14 return unless defined? ::Pettanr
15 @list_groups = ListGroup.manager(self, @local_json['list_groups'] || {})
16 @filers = Filer.manager(self, @local_json['filers'] || {})
17 @profilers = Profiler.manager(self, @local_json['profilers'] || {})
18 @forms = Form.base_manager(self, @local_json['forms'] || {})
19 @forms.merge(Form.extend_manager(self, @local_json['forms'] || {}))
26 LocalManifest.manifest
30 LocalManifest.manifest = LocalManifest.new local_json