diff options
| author | mo khan <mo@mokhan.ca> | 2015-01-02 11:16:40 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-01-02 11:16:40 -0700 |
| commit | f9b44b2456619e6eec078c4766361a382f50ca22 (patch) | |
| tree | 317f62f658b8a8e20080aa4dffd02dc1504bdd63 /app/controllers/api | |
| parent | 856654e6af0106497c30333c0f4c3586388e4375 (diff) | |
remove use of responders.
Diffstat (limited to 'app/controllers/api')
| -rw-r--r-- | app/controllers/api/v1/photos_controller.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/controllers/api/v1/photos_controller.rb b/app/controllers/api/v1/photos_controller.rb index 49c60f04..ac15f9c4 100644 --- a/app/controllers/api/v1/photos_controller.rb +++ b/app/controllers/api/v1/photos_controller.rb @@ -1,18 +1,16 @@ module Api module V1 class PhotosController < ApiController - respond_to :json - def index - respond_with(@photos = current_user.creations.find(params[:cake_id]).photos) + @photos = current_user.creations.find(params[:cake_id]).photos end def show - respond_with(@photo = current_user.creations.find(params[:cake_id]).photos.find(params[:id])) + @photo = current_user.creations.find(params[:cake_id]).photos.find(params[:id]) end def create - respond_with(@photo = UploadPhoto.new.run(params[:cake_id], params)) + @photo = UploadPhoto.new.run(params[:cake_id], params) end end end |
