class Avo::Index::GridItemComponent
def body
def body @grid_fields.body_field end
def cover
def cover @grid_fields.cover_field end
def initialize(resource: nil, reflection: nil, parent_model: nil)
def initialize(resource: nil, reflection: nil, parent_model: nil) @resource = resource @reflection = reflection @grid_fields = resource.get_grid_fields @parent_model = parent_model end
def title
def title @grid_fields.title_field end