Class: ActiveInteraction::InterfaceFilter
- Defined in:
- lib/active_interaction/filters/interface_filter.rb
Instance Attribute Summary
Attributes inherited from Filter
Instance Method Summary collapse
-
#initialize(name, options = {}, &block) ⇒ InterfaceFilter
constructor
A new instance of InterfaceFilter.
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, = {}, &block) if .key?(:methods) && .key?(:from) raise InvalidFilterError, 'method and from options cannot both be passed' end super end |