Class: AbAdmin::Config::Form

Inherits:
BaseBuilder show all
Defined in:
lib/ab_admin/config/base.rb

Direct Known Subclasses

ModalForm

Instance Attribute Summary

Attributes inherited from BaseBuilder

#fields, #options, #partial

Instance Method Summary collapse

Methods inherited from BaseBuilder

default_for_model, #field, #initialize

Constructor Details

This class inherits a constructor from AbAdmin::Config::BaseBuilder

Instance Method Details

#group(name = nil, options = {}, &block) ⇒ Object


50
51
52
53
# File 'lib/ab_admin/config/base.rb', line 50

def group(name=nil, options={}, &block)
  options[:title] = name || :base
  @fields << FieldGroup.new(options, &block)
end

#locale_tabs(options = {}, &block) ⇒ Object


55
56
57
# File 'lib/ab_admin/config/base.rb', line 55

def locale_tabs(options={}, &block)
  @fields << FieldGroup.new(options.update(localized: true), &block)
end