Browse files

simplify controller

  • Loading branch information...
1 parent 45c5ff5 commit a2c13e83a0e7badcd0a175d763809e6fecf6d711 @steveklabnik committed Nov 5, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 app/controllers/jobs_controller.rb
View
6 app/controllers/jobs_controller.rb
@@ -2,7 +2,7 @@ class JobsController < ApplicationController
before_filter :set_profile
def new
- render :json => JobSerializer.new(Job.new, :scope => true)
+ render :json => Job.new
end
def create
@@ -25,9 +25,7 @@ def update
end
def show
- @job = Job.find(params[:id])
-
- render :json => JobSerializer.new(@job, :scope => true)
+ render :json => Job.find(params[:id])
end
private

0 comments on commit a2c13e8

Please sign in to comment.