Module: RailsAdmin::Config::HasDescription
- Included in:
- Sections::Base
- Defined in:
- lib/rails_admin/config/has_description.rb
Overview
Provides accessor and autoregistering of model’s description.
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
Instance Method Summary collapse
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/rails_admin/config/has_description.rb', line 5 def description @description end |
Instance Method Details
#desc(description, &_block) ⇒ Object
7 8 9 |
# File 'lib/rails_admin/config/has_description.rb', line 7 def desc(description, &_block) @description ||= description end |