Skip to content
This repository
Browse code

Force order of agency by default

  • Loading branch information...
commit 3c8dadada95ae07460719464cc6e7ce99a043fd2 1 parent 53f8be2
Sebastien Tanguy authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  app/controllers/home_controller.rb
2  app/controllers/home_controller.rb
@@ -3,7 +3,7 @@ class HomeController < ApplicationController
3 3 before_filter :set_agency, :except => :redirect_root
4 4
5 5 def redirect_root
6   - redirect_to agency_path(Agency.first)
  6 + redirect_to agency_path(Agency.order(:id).first)
7 7 end
8 8
9 9 def show

0 comments on commit 3c8dada

Please sign in to comment.
Something went wrong with that request. Please try again.