class AssumableUser
  class Identity

    attr_reader :username, :github_id, :steps
    def initialize(username, github_id, steps)
      @username = username
      @github_id = github_id
      @steps = steps
    end

    def progress
      @progress ||= Onboarding.step(steps)
    end

    def status
      @status ||= Onboarding.status(steps)
    end
  end

  def self.all
    sql = "SELECT username, github_id FROM users u INNER JOIN lifecycle_events e ON u.id=e.user_id GROUP BY u.username, u.github_id, u.created_at ORDER BY u.created_at DESC LIMIT 100"
    ::User.order('created_at DESC').limit(100).map {|user|
      Identity.new(user.username, user.github_id, user.onboarding_steps)
    }.sort_by(&:progress).reverse
  end
end

class AssumableUser
  class Identity

    attr_reader :username, :github_id, :steps
    def initialize(username, github_id, steps)
      @username = username
      @github_id = github_id
      @steps = steps
    end

    def progress
      @progress ||= Onboarding.step(steps)
    end

    def status
      @status ||= Onboarding.status(steps)
    end
  end

  def self.all
    ::User.order('created_at DESC').limit(100).map {|user|
      Identity.new(user.username, user.github_id, user.onboarding_steps)
    }.sort_by(&:progress).reverse
  end
end

Remove unused variable from AssumableUser::Identity
Remove unused variable from AssumableUser::Identity

The `sql` variable wasn't being used, so I removed it.
