Module: PadrinoFields

Defined in:
lib/padrino-fields.rb,
lib/padrino-fields/settings.rb,
lib/padrino-fields/orms/datamapper.rb

Defined Under Namespace

Modules: DataMapperWrapper, Settings

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object Also known as: included



22
23
24
25
26
# File 'lib/padrino-fields.rb', line 22

def registered(app)
  app.set :default_builder, 'PadrinoFieldsBuilder'
  app.helpers Padrino::Helpers::FormBuilder::PadrinoFieldsBuilder
  rescue
end