Method: SimpleForm.setup

Defined in:
lib/simple_form.rb

.setup {|_self| ... } ⇒ Object

Default way to setup Simple Form. Run rails generate simple_form:install to create a fresh initializer with all configuration values.

Yields:

  • (_self)

Yield Parameters:

  • _self (SimpleForm)

    the object that the method was called on



291
292
293
294
# File 'lib/simple_form.rb', line 291

def self.setup
  @@configured = true
  yield self
end