summaryrefslogtreecommitdiff
path: root/app/controllers/v1
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-02-22 11:12:06 -0700
committermo khan <mo@mokhan.ca>2014-02-22 11:12:06 -0700
commitef7eeb8ed18092bde97ebc30d249d32e56d5645f (patch)
tree28b6d98b366230ee1a0e559272ffee18d38c9b3f /app/controllers/v1
parent64d63822a09d674d1257759b593a562711305d75 (diff)
found a weird bug with jbuilder and trying to render the location json node.
Diffstat (limited to 'app/controllers/v1')
-rw-r--r--app/controllers/v1/licenses_controller.rb2
1 files changed, 0 insertions, 2 deletions
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