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

Returns:

  • (Boolean)

87
88
89
# File 'lib/ab_admin/config/base.rb', line 87

def group?
  true
end

#localized?Boolean

Returns:

  • (Boolean)

83
84
85
# File 'lib/ab_admin/config/base.rb', line 83

def localized?
  options[:localized]
end

#titleObject


79
80
81
# File 'lib/ab_admin/config/base.rb', line 79

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