From ef7eeb8ed18092bde97ebc30d249d32e56d5645f Mon Sep 17 00:00:00 2001 From: mo khan Date: Sat, 22 Feb 2014 11:12:06 -0700 Subject: found a weird bug with jbuilder and trying to render the location json node. --- app/controllers/application_controller.rb | 1 - app/controllers/v1/licenses_controller.rb | 2 -- 2 files changed, 3 deletions(-) (limited to 'app/controllers') diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 1b2f9f7..424262c 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -5,7 +5,6 @@ class ApplicationController < ActionController::Base before_filter :load_additional_payload_data rescue_from StandardError, with: :return_server_error - def load_additional_payload_data @license_statuses = LicenseStatus::ALL @well_types = WellType::ALL diff --git a/app/controllers/v1/licenses_controller.rb b/app/controllers/v1/licenses_controller.rb index c62c78b..8966100 100644 --- a/app/controllers/v1/licenses_controller.rb +++ b/app/controllers/v1/licenses_controller.rb @@ -5,12 +5,10 @@ class V1::LicensesController < ApplicationController def index @licenses = License.most_recent(page: @page, per_page: @per_page) - render json: @licenses end def show @license = License.find(params[:id]) - render json: @license end private -- cgit v1.2.3