allow protected keys to be set/unset + config_db tests

This commit is contained in:
wvengen 2014-06-25 16:21:36 +02:00
parent 9beaac2627
commit 6115979bae
7 changed files with 179 additions and 13 deletions

View file

@ -41,6 +41,7 @@ module Admin::ConfigsHelper
# @todo find out how to pass +checked_value+ and +unchecked_value+ to +input_field+
def config_input_field(form, key, options = {})
return unless @cfg.allowed_key? :key
options[:required] ||= false
config_input_field_options form, key, options
config_input_tooltip_options form, key, options
if options[:as] == :boolean