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 79ba03c commit 7373848Copy full SHA for 7373848
lib/ajax-datatables-rails/base.rb
@@ -3,18 +3,15 @@
3
module AjaxDatatablesRails
4
class Base
5
6
- attr_reader :params, :options
+ attr_reader :params, :options, :datatable
7
8
GLOBAL_SEARCH_DELIMITER = ' '
9
10
def initialize(params, options = {})
11
@params = params
12
@options = options
13
load_orm_extension
14
- end
15
-
16
- def datatable
17
- @datatable ||= Datatable::Datatable.new(self)
+ @datatable = Datatable::Datatable.new(self)
18
end
19
20
def view_columns
0 commit comments