Module: Godmin::Resources::ResourceService::ClassMethods

Defined in:
lib/godmin/resources/resource_service.rb

Instance Method Summary collapse

Instance Method Details

#attrs_for_export(*attrs) ⇒ Object



102
103
104
105
# File 'lib/godmin/resources/resource_service.rb', line 102

def attrs_for_export(*attrs)
  @attrs_for_export = attrs if attrs.present?
  @attrs_for_export || []
end

#attrs_for_form(*attrs) ⇒ Object



97
98
99
100
# File 'lib/godmin/resources/resource_service.rb', line 97

def attrs_for_form(*attrs)
  @attrs_for_form = attrs if attrs.present?
  @attrs_for_form || []
end

#attrs_for_index(*attrs) ⇒ Object



87
88
89
90
# File 'lib/godmin/resources/resource_service.rb', line 87

def attrs_for_index(*attrs)
  @attrs_for_index = attrs if attrs.present?
  @attrs_for_index || []
end

#attrs_for_show(*attrs) ⇒ Object



92
93
94
95
# File 'lib/godmin/resources/resource_service.rb', line 92

def attrs_for_show(*attrs)
  @attrs_for_show = attrs if attrs.present?
  @attrs_for_show || []
end