Class: Uchi::Field::BelongsTo::Index

Inherits:
Uchi::Field::Base::Index show all
Includes:
Helpers
Defined in:
app/components/uchi/field/belongs_to.rb

Instance Attribute Summary

Attributes inherited from Uchi::Field::Base::Component

#field, #record, #repository

Instance Method Summary collapse

Methods included from Helpers

#associated_record, #associated_repository, #label_for_associated_record

Methods inherited from Uchi::Field::Base::Index

classes_for_table_cell

Methods inherited from Uchi::Field::Base::Component

#initialize, #value

Constructor Details

This class inherits a constructor from Uchi::Field::Base::Component

Instance Method Details

#render?Boolean

Returns:



90
91
92
# File 'app/components/uchi/field/belongs_to.rb', line 90

def render?
  associated_record.present?
end