mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-14 13:51:26 +00:00
22 lines
367 B
Ruby
22 lines
367 B
Ruby
class CustomUrlsController < ApplicationController
|
|
def administrate
|
|
end
|
|
|
|
def create
|
|
|
|
end
|
|
|
|
def show
|
|
custom_url = CustomUrl.find_by_name(params[:name])
|
|
@article = custom_url.article
|
|
raise AccessError unless @article.can_show? cuser
|
|
@article.read_by! cuser if cuser
|
|
render 'articles/show'
|
|
end
|
|
|
|
def update
|
|
end
|
|
|
|
def destroy
|
|
end
|
|
end
|