Api to update pusher configuration of company.
# File app/controllers/mobile_app_api/v1/companies_controller.rb, line 4 def index company_details = [] @companies = Company.includes(:pusher_configuration) if @companies.exists? @companies.each do |company| company_details << company.attributes.except('created_at','updated_at').merge(pusher_app_key: company.pusher_configuration.try(:api_key)) end render json: {status: 200, company_info: company_details} else render json: {status: 401, error: "Company is not present"} end end