sort_it_out 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Histroy.txt +1 -1
- data/VERSION +1 -1
- data/lib/sort_it_out.rb +1 -1
- data/lib/sort_it_out/sortable.rb +1 -1
- data/sort_it_out.gemspec +1 -1
- metadata +1 -1
data/Histroy.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.1
|
data/lib/sort_it_out.rb
CHANGED
data/lib/sort_it_out/sortable.rb
CHANGED
@@ -28,7 +28,7 @@ module SortItOut
|
|
28
28
|
protected
|
29
29
|
|
30
30
|
def resolve_order_clause( order, dir="ASC" )
|
31
|
-
translated = self.options[:map][order.to_sym]
|
31
|
+
translated = self.options[:map][order.to_sym] unless self.options[:map].nil?
|
32
32
|
order = translated unless translated.nil?
|
33
33
|
return order.is_a?( Array ) ? order.map { |field| "#{field} #{dir}" }.join( ", " ) : "#{order} #{dir}"
|
34
34
|
end
|
data/sort_it_out.gemspec
CHANGED