Module: Sequel::Plugins::FormeSet

Defined in:
lib/sequel/plugins/forme_set.rb

Overview

The forme_set plugin makes the model instance keep track of which form inputs have been added for it. It adds a forme_set method to handle the intake of submitted data from the form. For more complete control, it also adds a forme_parse method that returns a hash of information that can be used to modify and validate the object.

Defined Under Namespace

Modules: InstanceMethods

Constant Summary collapse

SKIP_FORMATTERS =
[:disabled, :readonly, ::Forme::Formatter::Disabled, ::Forme::Formatter::ReadOnly]

Class Method Summary collapse

Class Method Details

.apply(model) ⇒ Object

Depend on the forme plugin, as forme_input already needs to be defined.



14
15
16
# File 'lib/sequel/plugins/forme_set.rb', line 14

def self.apply(model)
  model.plugin :forme
end