module V1
  class TalksController < ApplicationController

    def index
      edition = if params.has_key?(:id)
        Edition.find_by(id: params[:id])
      else
        Edition.get_current
      end

      @talks = Talk.where(edition: edition)
    end

  end
end

module V1
  class TalksController < ApplicationController

    def index
      edition = if params.has_key?(:edition)
        Edition.find_by(id: params[:edition])
      else
        Edition.get_current
      end

      @talks = Talk.where(edition: edition)
    end

  end
end

Revert "Filter editions by id param"
Revert "Filter editions by id param"

This reverts commit d42dade99e64b4780b21df48a7075d3ea2c343f8.
