Skip to content

Commit

Permalink
Don't render layout on ApiTaster::Routes#show.
Browse files Browse the repository at this point in the history
It's loaded by AJAX, so it's enough we'll load only the body of the #show response.
(this removes unneeded <script> loads and improves the speed of ApiTaster).
  • Loading branch information
jtomaszewski committed Sep 25, 2013
1 parent 31aad2d commit 08d137d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/api_taster/routes_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module ApiTaster
class RoutesController < ApiTaster::ApplicationController
before_filter :map_routes
layout false, except: :index

def index
@routes = Route.grouped_routes
Expand Down

0 comments on commit 08d137d

Please sign in to comment.