Module: Godmin::Resources::ResourceService::ClassMethods
- Defined in:
- lib/godmin/resources/resource_service.rb
Instance Method Summary collapse
- #attrs_for_export(*attrs) ⇒ Object
- #attrs_for_form(*attrs) ⇒ Object
- #attrs_for_index(*attrs) ⇒ Object
- #attrs_for_show(*attrs) ⇒ Object
Instance Method Details
#attrs_for_export(*attrs) ⇒ Object
101 102 103 104 |
# File 'lib/godmin/resources/resource_service.rb', line 101 def attrs_for_export(*attrs) @attrs_for_export = attrs if attrs.present? @attrs_for_export || [] end |
#attrs_for_form(*attrs) ⇒ Object
96 97 98 99 |
# File 'lib/godmin/resources/resource_service.rb', line 96 def attrs_for_form(*attrs) @attrs_for_form = attrs if attrs.present? @attrs_for_form || [] end |
#attrs_for_index(*attrs) ⇒ Object
86 87 88 89 |
# File 'lib/godmin/resources/resource_service.rb', line 86 def attrs_for_index(*attrs) @attrs_for_index = attrs if attrs.present? @attrs_for_index || [] end |
#attrs_for_show(*attrs) ⇒ Object
91 92 93 94 |
# File 'lib/godmin/resources/resource_service.rb', line 91 def attrs_for_show(*attrs) @attrs_for_show = attrs if attrs.present? @attrs_for_show || [] end |