Class: RedmineExtensions::EasySettingPresenter::BooleanKeysAlsoToMapperKey

Inherits:
Array
  • Object
show all
Defined in:
app/presenters/redmine_extensions/easy_setting_presenter.rb

Overview

To keep backward compatibility with old presenter

Instance Method Summary collapse

Instance Method Details

#<<(key) ⇒ Object



132
133
134
135
# File 'app/presenters/redmine_extensions/easy_setting_presenter.rb', line 132

def <<(key)
  EasySetting.map.key(key, type: 'boolean')
  super
end

#concat(keys) ⇒ Object



137
138
139
140
# File 'app/presenters/redmine_extensions/easy_setting_presenter.rb', line 137

def concat(keys)
  EasySetting.map.keys(*keys, type: 'boolean')
  super
end