Module: Wice::ConfigurationProvider
- Defined in:
- lib/wice_grid_misc.rb
Overview
:nodoc:
Class Method Summary collapse
-
.value_for(key) ⇒ Object
:nodoc:.
Class Method Details
.value_for(key) ⇒ Object
:nodoc:
87 88 89 90 91 92 93 |
# File 'lib/wice_grid_misc.rb', line 87 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 rails g wice_grid:wice_grid_assets_jquery\nor rails g wice_grid:wice_grid_assets_prototype\ndepending on your JS framework") end end |