2013-07-24 65 views

回答

0

我的解決辦法是:

m = Model.find(id) 
m.attributes.keys.concat(m.reflections.map{|r| r.first.to_s})