Skip to content

Commit 1c0e974

Browse files
committed
Spelling is hard
1 parent 9b9be04 commit 1c0e974

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/ajax-datatables-rails/base.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,24 +139,24 @@ def per_page
139139
end
140140

141141
def sort_column(item)
142-
sortable_columns[sortable_diplayed_columns.index(item[:column])]
142+
sortable_columns[sortable_displayed_columns.index(item[:column])]
143143
end
144144

145145
def sort_direction(item)
146146
options = %w(desc asc)
147147
options.include?(item['dir']) ? item['dir'].upcase : 'ASC'
148148
end
149149

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
152152
end
153153

154-
def generate_sortable_diplayed_columns
155-
@sortable_diplayed_columns = []
154+
def generate_sortable_displayed_columns
155+
@sortable_displayed_columns = []
156156
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'
158158
end
159-
@sortable_diplayed_columns
159+
@sortable_displayed_columns
160160
end
161161

162162
end

0 commit comments

Comments
 (0)