Skip to content

Commit 2679215

Browse files
author
Nicolas Rodriguez
committed
Coding style
1 parent 73f4301 commit 2679215

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/ajax-datatables-rails/base.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ class Base
55
extend Forwardable
66

77
attr_reader :view, :options
8-
def_delegator :@view, :params, :params
8+
def_delegator :@view, :params
99

1010
def initialize(view, options = {})
11-
@view = view
11+
@view = view
1212
@options = options
1313
load_orm_extension
1414
end
@@ -18,7 +18,7 @@ def config
1818
end
1919

2020
def datatable
21-
@datatable ||= Datatable::Datatable.new self
21+
@datatable ||= Datatable::Datatable.new(self)
2222
end
2323

2424
# Must overrited methods

lib/ajax-datatables-rails/datatable/simple_order.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ class SimpleOrder
44

55
DIRECTIONS = %w[DESC ASC].freeze
66

7-
def initialize(datatable, options)
7+
def initialize(datatable, options = {})
88
@datatable = datatable
9-
@options = options || {}
9+
@options = options
1010
end
1111

1212
def query(sort_column)

lib/ajax-datatables-rails/datatable/simple_search.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ module AjaxDatatablesRails
22
module Datatable
33
class SimpleSearch
44

5-
def initialize(options)
6-
@options = options || {}
5+
def initialize(options = {})
6+
@options = options
77
end
88

99
def value

0 commit comments

Comments
 (0)