Skip to content

Commit

Permalink
fixup! Use original value
Browse files Browse the repository at this point in the history
  • Loading branch information
mlt committed Jun 29, 2020
1 parent ffc126f commit 81e520d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tabulatr/renderer/column.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def value_for(record, view)
end
options = col_options.editable.is_a?(Hash) ? col_options.editable.with_indifferent_access : {}
# .to_s ? somehow 'false' renders to nothing
return "#{formatted}" unless col_options.editable and proxy.editable?(view, name.to_s)
return "#{formatted}" unless col_options.editable && proxy.editable?(view, name.to_s)
want_select = options.has_key?(:type) && options[:type].to_sym.eql?(:select)
name_editable = name
# Typically we edit underlying association object unless we are selecting an item
Expand Down

0 comments on commit 81e520d

Please sign in to comment.