1
0
Fork 0
beathaven/app/models/user.rb

13 lines
203 B
Ruby
Raw Normal View History

2012-09-01 22:03:19 +00:00
class User < ActiveRecord::Base
attr_accessible :lang, :name, :vk_id
def dump_json
Jbuilder.encode do |j|
j.id id
j.name name
j.lang lang
j.vk_id vk_id
end
end
end