Skip to content
Snippets Groups Projects
Commit 93d03e6a authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix #799

parent e17c972e
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,12 @@ class Admin::Research::Laboratories::ApplicationController < Admin::Research::Ap
protected
def breadcrumb
super
add_breadcrumb Research::Laboratory.model_name.human(count: 2), admin_research_laboratories_path
add_breadcrumb @laboratory, [:admin, @laboratory]
end
def default_url_options
return {} unless params.has_key? :laboratory_id
{
......
......@@ -8,7 +8,6 @@ class Admin::Research::LaboratoriesController < Admin::Research::ApplicationCont
def index
@laboratories = apply_scopes(@laboratories).ordered.page(params[:page])
breadcrumb
add_breadcrumb Research::Laboratory.model_name.human(count: 2), admin_research_laboratories_path
end
def show
......@@ -51,6 +50,12 @@ class Admin::Research::LaboratoriesController < Admin::Research::ApplicationCont
protected
def breadcrumb
super
add_breadcrumb Research::Laboratory.model_name.human(count: 2), admin_research_laboratories_path
breadcrumb_for @laboratory
end
def laboratory_params
params.require(:research_laboratory)
.permit(:name, :address, :zipcode, :city, :country)
......
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