metamaps--metamaps/app/models/user_preference.rb
Connor Turland 9070bfc836 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
2016-09-09 20:36:49 -04:00

12 lines
278 B
Ruby

class UserPreference
attr_accessor :metacodes
def initialize
array = []
%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
end