Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
Don't return index of cities.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Peplin committed Nov 8, 2010
1 parent 77d01c3 commit c761fcb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/controllers/cities_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ def load_profile
private

def find_cities
if current_user and current_user.admin?
@cities = @game.states.collect(&:cities)
elsif params[:state_id]
if params[:state_id]
@cities = State.find(params[:state_id]).cities
else
@cities = current_state.cities
Expand Down

0 comments on commit c761fcb

Please sign in to comment.