fix #465, metacode sort problem

This commit is contained in:
Devin Howard 2015-11-04 17:22:46 +08:00 committed by Connor Turland
parent 87389a88ed
commit 520fe095bd

View file

@ -9,7 +9,7 @@ module ApplicationHelper
@m = user.settings.metacodes
set = get_metacodeset
if set
@metacodes = set.metacodes
@metacodes = set.metacodes.to_a
else
@metacodes = Metacode.where(id: @m).to_a
end