File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
lib/ajax-datatables-rails Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -139,24 +139,24 @@ def per_page
139
139
end
140
140
141
141
def sort_column ( item )
142
- sortable_columns [ sortable_diplayed_columns . index ( item [ :column ] ) ]
142
+ sortable_columns [ sortable_displayed_columns . index ( item [ :column ] ) ]
143
143
end
144
144
145
145
def sort_direction ( item )
146
146
options = %w( desc asc )
147
147
options . include? ( item [ 'dir' ] ) ? item [ 'dir' ] . upcase : 'ASC'
148
148
end
149
149
150
- def sortable_diplayed_columns
151
- @sortable_diplayed_columns ||= generate_sortable_diplayed_columns
150
+ def sortable_displayed_columns
151
+ @sortable_displayed_columns ||= generate_sortable_displayed_columns
152
152
end
153
153
154
- def generate_sortable_diplayed_columns
155
- @sortable_diplayed_columns = [ ]
154
+ def generate_sortable_displayed_columns
155
+ @sortable_displayed_columns = [ ]
156
156
params [ :columns ] . each_value do |column |
157
- @sortable_diplayed_columns << column [ :data ] if column [ :orderable ] == 'true'
157
+ @sortable_displayed_columns << column [ :data ] if column [ :orderable ] == 'true'
158
158
end
159
- @sortable_diplayed_columns
159
+ @sortable_displayed_columns
160
160
end
161
161
162
162
end
You can’t perform that action at this time.
0 commit comments