You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
302 B
11 lines
302 B
class Competitions::BaseController < ApplicationController
|
|
include PaginateHelper
|
|
|
|
before_action :require_login
|
|
|
|
helper_method :current_competition
|
|
|
|
def current_competition
|
|
@_current_competition ||= Competition.find_by!(identifier: params[:competition_id].presence || params[:id])
|
|
end
|
|
end |