We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c0d4f2 commit 67ef51dCopy full SHA for 67ef51d
lib/ajax-datatables-rails/datatable/column.rb
@@ -67,11 +67,11 @@ def formated_value
67
private
68
69
def type_cast
70
- DB_ADAPTER_TYPE_CAST[AjaxDatatablesRails.config.db_adapter] || 'VARCHAR'
+ @type_cast ||= (DB_ADAPTER_TYPE_CAST[AjaxDatatablesRails.config.db_adapter] || 'VARCHAR')
71
end
72
73
def casted_column
74
- ::Arel::Nodes::NamedFunction.new('CAST', [table[field].as(type_cast)])
+ @casted_column ||= ::Arel::Nodes::NamedFunction.new('CAST', [table[field].as(type_cast)])
75
76
77
0 commit comments