Commit 15e699ed by Cuong Tran

Merge pull request #351 from kfarst/develop

Allow classified sorting without an ID column
parents c7615d4a 9e943923
......@@ -671,7 +671,7 @@ module AnnotateModels
end
[rest_cols, timestamps, associations].each {|a| a.sort_by!(&:name) }
return ([id] << rest_cols << timestamps << associations).flatten
return ([id] << rest_cols << timestamps << associations).flatten.compact
end
# Ignore warnings for the duration of the block ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment