Method: ActiveSet::ColumnInstruction#value
- Defined in:
- lib/active_set/column_instruction.rb
#value ⇒ Object
23 24 25 26 27 28 |
# File 'lib/active_set/column_instruction.rb', line 23 def value return default unless @instructions_hash.key?(:value) return @instructions_hash[:value].call(@item) if @instructions_hash[:value]&.respond_to? :call attribute_instruction.value_for(item: @item) end |