Method: ActiveInteraction::HashFilter#method_missing

Defined in:
lib/active_interaction/filters/hash_filter.rb

#method_missing(*args, &block) ⇒ Object (private)

rubocop:disable Style/MissingRespondToMissing



79
80
81
82
83
84
85
86
87
# File 'lib/active_interaction/filters/hash_filter.rb', line 79

def method_missing(*args, &block)
  super(*args) do |klass, names, options|
    raise InvalidFilterError, 'missing attribute name' if names.empty?

    names.each do |name|
      filters[name] = klass.new(name, options, &block)
    end
  end
end