diff options
| -rw-r--r-- | app/helpers/table_builder_helper.rb | 2 | ||||
| -rw-r--r-- | spec/views/stop_areas/index.html.slim_spec.rb | 1 | 
2 files changed, 2 insertions, 1 deletions
| diff --git a/app/helpers/table_builder_helper.rb b/app/helpers/table_builder_helper.rb index b123da802..9a255e757 100644 --- a/app/helpers/table_builder_helper.rb +++ b/app/helpers/table_builder_helper.rb @@ -98,7 +98,7 @@ module TableBuilderHelper        class: cls    end -  def self.item_row_class_name collection, model +  def self.item_row_class_name collection, model=nil      model_name = model&.name      model_name ||= diff --git a/spec/views/stop_areas/index.html.slim_spec.rb b/spec/views/stop_areas/index.html.slim_spec.rb index 520cecc1a..6e66c5ab9 100644 --- a/spec/views/stop_areas/index.html.slim_spec.rb +++ b/spec/views/stop_areas/index.html.slim_spec.rb @@ -13,6 +13,7 @@ describe "/stop_areas/index", :type => :view do      allow(view).to receive(:link_with_search).and_return("#")      allow(view).to receive(:collection).and_return(stop_areas)      allow(view).to receive(:current_referential).and_return(stop_area_referential) +    allow(view).to receive(:params).and_return({action: :index})      controller.request.path_parameters[:stop_area_referential_id] = stop_area_referential.id      render    end | 
