Class: RailsAdmin::Config::Sections::Base
- Inherits:
-
Object
- Object
- RailsAdmin::Config::Sections::Base
- Includes:
- Configurable, HasFields, HasGroups, Proxyable
- Defined in:
- lib/rails_admin/config/sections/base.rb
Overview
Configuration of the show view for a new object
Instance Attribute Summary collapse
-
#abstract_model ⇒ Object
readonly
Returns the value of attribute abstract_model.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Attributes included from Proxyable
Instance Method Summary collapse
-
#initialize(parent) ⇒ Base
constructor
A new instance of Base.
- #inspect ⇒ Object
Methods included from HasGroups
Methods included from HasFields
#all_fields, #configure, #exclude_fields, #field, #fields, #fields_of_type, #include_all_fields, #include_fields, #visible_fields
Methods included from Configurable
#has_option?, included, #register_deprecated_instance_option, #register_instance_option
Methods included from Proxyable
Constructor Details
Instance Attribute Details
#abstract_model ⇒ Object (readonly)
Returns the value of attribute abstract_model.
17 18 19 |
# File 'lib/rails_admin/config/sections/base.rb', line 17 def abstract_model @abstract_model end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
18 19 20 |
# File 'lib/rails_admin/config/sections/base.rb', line 18 def parent @parent end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
18 19 20 |
# File 'lib/rails_admin/config/sections/base.rb', line 18 def root @root end |
Instance Method Details
#inspect ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/rails_admin/config/sections/base.rb', line 27 def inspect "#<#{self.class.name} #{ instance_variables.map do |v| value = instance_variable_get(v) if [:@parent, :@root, :@abstract_model].include? v if value.respond_to? :name "#{v}=#{value.name.inspect}" else "#{v}=#{value.class.name}" end else "#{v}=#{value.inspect}" end end.join(", ") }>" end |