16 lines
384 B
Ruby
16 lines
384 B
Ruby
object @retailer
|
|
|
|
attributes :id, :user_id, :name, :enabled, :original_fpfile, :cropped_fpfile, :crop_selection, :photo_url
|
|
|
|
child :owner => :owner do
|
|
attributes :id, :email, :photo_url, :name, :first_name, :last_name
|
|
end
|
|
|
|
|
|
child :teachers => :teachers do |teacher|
|
|
attributes :id
|
|
|
|
child :user => :user do
|
|
attributes :id, :name, :first_name, :last_name, :photo_url
|
|
end
|
|
end |