support-foo/web

View on GitHub
app/controllers/api/people_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Api::PeopleController < ApiController

  def index
    find_account!
    respond_with(@account.people)
  end

  protected

  def find_account!
    @account = Account.find_by!(id: params.fetch(:account_id))
  end

end