File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
lib/ajax-datatables-rails Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ class Base
5
5
extend Forwardable
6
6
7
7
attr_reader :view , :options
8
- def_delegator :@view , :params , :params
8
+ def_delegator :@view , :params
9
9
10
10
def initialize ( view , options = { } )
11
- @view = view
11
+ @view = view
12
12
@options = options
13
13
load_orm_extension
14
14
end
@@ -18,7 +18,7 @@ def config
18
18
end
19
19
20
20
def datatable
21
- @datatable ||= Datatable ::Datatable . new self
21
+ @datatable ||= Datatable ::Datatable . new ( self )
22
22
end
23
23
24
24
# Must overrited methods
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ class SimpleOrder
4
4
5
5
DIRECTIONS = %w[ DESC ASC ] . freeze
6
6
7
- def initialize ( datatable , options )
7
+ def initialize ( datatable , options = { } )
8
8
@datatable = datatable
9
- @options = options || { }
9
+ @options = options
10
10
end
11
11
12
12
def query ( sort_column )
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ module AjaxDatatablesRails
2
2
module Datatable
3
3
class SimpleSearch
4
4
5
- def initialize ( options )
6
- @options = options || { }
5
+ def initialize ( options = { } )
6
+ @options = options
7
7
end
8
8
9
9
def value
You can’t perform that action at this time.
0 commit comments