Module: Fend::Plugins::BaseErrors::InstanceMethods
- Defined in:
- lib/fend/plugins/base_errors.rb
Instance Method Summary collapse
Instance Method Details
#add_base_error(message) ⇒ Object
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/fend/plugins/base_errors.rb', line 38 def add_base_error() = @_input_param.errors key = self.class.opts[:base_errors_key] if .is_a?(Hash) && .key?(key) [key] << else @_input_param.params(key) { |base| base.add_error() } end end |