8 lines
142 B
Ruby
8 lines
142 B
Ruby
module ContestsConcern
|
|
extend ActiveSupport::Concern
|
|
|
|
def active_page(path)
|
|
request.path.starts_with?(path) ? "active" : ""
|
|
end
|
|
end
|