2016-02-03 13:38:41 +00:00
|
|
|
class UserPreference
|
|
|
|
attr_accessor :metacodes
|
2016-07-26 00:14:23 +00:00
|
|
|
|
2016-02-03 13:38:41 +00:00
|
|
|
def initialize
|
|
|
|
array = []
|
2016-09-10 00:36:49 +00:00
|
|
|
%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
|
2016-02-03 13:38:41 +00:00
|
|
|
end
|
|
|
|
@metacodes = array
|
|
|
|
end
|
2016-07-26 00:14:23 +00:00
|
|
|
end
|