use a subset of the simplest metacodes for new users (#633)
* use a subset of the simplest ones for new users * Update user_preference.rb * Update user_preference.rb
This commit is contained in:
parent
d3bc3e3d18
commit
9070bfc836
1 changed files with 3 additions and 2 deletions
|
@ -3,8 +3,9 @@ class UserPreference
|
|||
|
||||
def initialize
|
||||
array = []
|
||||
Metacode.all.find_each do |m|
|
||||
array.push(m.id.to_s)
|
||||
%w(Action Aim Idea Question Note Wildcard Subject).each do |m|
|
||||
metacode = Metacode.find_by_name(m)
|
||||
array.push(metacode.id.to_s) if metacode
|
||||
end
|
||||
@metacodes = array
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue