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 caaa96f commit d2ed7deCopy full SHA for d2ed7de
lib/ajax-datatables-rails/datatable/column.rb
@@ -43,11 +43,11 @@ def table
43
end
44
45
def model
46
- source.split('.').first.constantize
+ @model ||= source.split('.').first.constantize
47
48
49
def field
50
- source.split('.').last.to_sym
+ @field ||= source.split('.').last.to_sym
51
52
53
def custom_field?
0 commit comments