Skip to content

Commit

Permalink
Use present? instead of size > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
fredwu committed Jun 21, 2012
1 parent 4ebd746 commit d84024e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api_taster/routes_controller.rb
Expand Up @@ -2,7 +2,7 @@ module ApiTaster
class RoutesController < ApplicationController
def index
@routes = Route.grouped_routes
@has_obsolete_definitions = Route.obsolete_definitions.size > 0
@has_obsolete_definitions = Route.obsolete_definitions.present?
end

def show
Expand Down

0 comments on commit d84024e

Please sign in to comment.