Module: Wice::ConfigurationProvider

Defined in:
lib/wice_grid_misc.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.value_for(key) ⇒ Object

:nodoc:


88
89
90
91
92
93
94
# File 'lib/wice_grid_misc.rb', line 88

def value_for(key) #:nodoc:
  if Wice::Defaults.const_defined?(key)
    Wice::Defaults.const_get(key)
  else
    raise WiceGridException.new("Could not find constant #{key} in the configuration file! Please run the generator command to update the configuration file:\n   ./script/generate   wice_grid_assets_jquery\nor   \n./script/generate  wice_grid_assets_prototype\ndepending on your JS framework")
  end
end