Use named parameter in mappable shared example

Boolean arguments are harder to read, so we added a useless variable.
This is the perfect scenario for a named parameter.
This commit is contained in:
Javi Martín
2019-09-22 21:52:13 +02:00
parent 4e72d9f3b7
commit 175163adb6
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
shared_examples "mappable" do |mappable_factory_name, mappable_association_name, mappable_new_path, mappable_edit_path, mappable_show_path, mappable_path_arguments, management = false|
shared_examples "mappable" do |mappable_factory_name, mappable_association_name, mappable_new_path, mappable_edit_path, mappable_show_path, mappable_path_arguments, management: false|
include ActionView::Helpers