Permalink
Browse files

Force order of agency by default

  • Loading branch information...
1 parent 53f8be2 commit 3c8dadada95ae07460719464cc6e7ce99a043fd2 @stanguy committed Apr 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/home_controller.rb
View
2 app/controllers/home_controller.rb
@@ -3,7 +3,7 @@ class HomeController < ApplicationController
before_filter :set_agency, :except => :redirect_root
def redirect_root
- redirect_to agency_path(Agency.first)
+ redirect_to agency_path(Agency.order(:id).first)
end
def show

0 comments on commit 3c8dada

Please sign in to comment.