add new field
This commit is contained in:
@@ -8,7 +8,7 @@ class Api::ClientsController < ApplicationController
|
||||
clients =Client.all
|
||||
arr_client=Array.new
|
||||
clients.each do |client|
|
||||
str={:id => client.id,:name => client.name,:email => client.email,:phone => client.phone,:address => client.address,:product_type => client.product_type}
|
||||
str={:id => client.id,:name => client.name,:email => client.email,:phone => client.phone,:address => client.address}
|
||||
arr_client.push(str)
|
||||
end
|
||||
@out=true,arr_client
|
||||
|
||||
Reference in New Issue
Block a user