Class: AbAdmin::Config::FieldGroup

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

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?Boolean


89
90
91
# File 'lib/ab_admin/config/base.rb', line 89

def group?
  true
end

#localized?Boolean


85
86
87
# File 'lib/ab_admin/config/base.rb', line 85

def localized?
  options[:localized]
end

#titleObject


81
82
83
# File 'lib/ab_admin/config/base.rb', line 81

def title
  options[:title].is_a?(Symbol) ? I18n.t(options[:title], scope: [:admin, :form]) : options[:title]
end