Class: ActiveInteraction::InterfaceFilter

Inherits:
Filter
  • Object
show all
Defined in:
lib/active_interaction/filters/interface_filter.rb

Instance Attribute Summary

Attributes inherited from Filter

#filters, #name, #options

Instance Method Summary collapse

Methods inherited from Filter

#accepts_grouped_inputs?, #database_column_type, #default, #default?, #desc, factory, #process

Constructor Details

#initialize(name, options = {}, &block) ⇒ InterfaceFilter

Returns a new instance of InterfaceFilter.



31
32
33
34
35
36
37
38
# File 'lib/active_interaction/filters/interface_filter.rb', line 31

def initialize(name, options = {}, &block)
  if options.key?(:methods) && options.key?(:from)
    raise InvalidFilterError,
      'method and from options cannot both be passed'
  end

  super
end