Class: Zashoku::ViewConfig

Inherits:
Config show all
Defined in:
lib/core/config/view_config.rb

Constant Summary collapse

CONF_FILE =
File.join(CONF_DIR, '/view.yml')

Constants inherited from Config

Config::CONF_DIR

Instance Method Summary collapse

Methods inherited from Config

#default_conf, #get, #initialize, #items, #parse_dir, #pref_model, #reload, #save, #save?, #set, #user_conf

Methods inherited from Controller

#items

Constructor Details

This class inherits a constructor from Zashoku::Config

Instance Method Details

#base_confObject



15
16
17
18
19
20
# File 'lib/core/config/view_config.rb', line 15

def base_conf
  Zashoku::Util.deep_merge(
    Util.get_yaml(File.join(Zashoku::Root, 'config/view.yml')),
    Util.get_yaml(File.join(Zashoku::CConf[:app][:root], 'config/view.yml')),
  )
end

#module_confObject



9
10
11
12
13
# File 'lib/core/config/view_config.rb', line 9

def module_conf
  Zashoku.modules.map do |_k, mod|
    mod.send(:view_config)
  end
end