Skip to content
Snippets Groups Projects
Unverified Commit 7cede2b2 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

find_by!

parent cd38ed6f
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ class Extranet::Posts::PostsController < Extranet::Posts::ApplicationController
end
def show
@post = current_extranet.posts.find_by slug: params[:slug]
@post = current_extranet.posts.find_by! slug: params[:slug]
breadcrumb
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment