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



265
266
267
268
# File 'lib/simple_form.rb', line 265

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