Skip to content

Commit

Permalink
Move revisions action upper for better visibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpOOnman committed Aug 2, 2012
1 parent 817e88c commit e3b948d
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -17,6 +17,11 @@ class HotelController {
[hotelInstanceList: Hotel.list(params), hotelInstanceTotal: Hotel.count()]
}

def revisions = {
def hotelInstanceList = Hotel.findAllRevisions()
render(view: 'revisions', model: [hotelInstanceList: hotelInstanceList, hotelInstanceTotal: hotelInstanceList.size()])
}

def create() {
[hotelInstance: new Hotel(params)]
}
Expand Down Expand Up @@ -101,9 +106,4 @@ class HotelController {
redirect(action: "show", id: id)
}
}

def revisions = {
def hotelInstanceList = Hotel.findAllRevisions()
render(view: 'revisions', model: [hotelInstanceList: hotelInstanceList, hotelInstanceTotal: hotelInstanceList.size()])
}
}

0 comments on commit e3b948d

Please sign in to comment.