metamaps--metamaps/app/models/user_preference.rb
2016-02-05 11:43:15 +08:00

11 lines
No EOL
179 B
Ruby

class UserPreference
attr_accessor :metacodes
def initialize
array = []
Metacode.all.each do |m|
array.push(m.id.to_s)
end
@metacodes = array
end
end