Method: FormObject::Integrations.find_by_name

Defined in:
lib/form_object/integrations.rb

.find_by_name(name) ⇒ Object

Find integration by name

Examples:

FormObject::Integrations.find_by_name(:active_record) # => FormObject::Integrations::ActiveRecord


35
36
37
# File 'lib/form_object/integrations.rb', line 35

def self.find_by_name( name )
  all.detect {|integration| integration.integration_name == name} || raise( InvalidIntegration.new(name) )
end