Skip to content

Commit

Permalink
only active rep ids
Browse files Browse the repository at this point in the history
  • Loading branch information
msimonborg committed Aug 22, 2017
1 parent 2ff0716 commit dc0b0e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/reps_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def execute_index_with_geo_method(method)
def show; end

def official_ids
@reps = apply_scopes(Rep).official_ids_and_names
@reps = apply_scopes(Rep).where(active: true).official_ids_and_names
render json: @reps
end

Expand Down

0 comments on commit dc0b0e0

Please sign in to comment.