Make the products controller specs green
This commit is contained in:
@@ -3,7 +3,7 @@ class CustomFormBuilder < ActionView::Helpers::FormBuilder
|
||||
t = @template
|
||||
elements = []
|
||||
elements << submit(nil, class: 'form-action-submit')
|
||||
plural_subject = object.class.name.underscore.pluralize
|
||||
plural_subject = object.class.name.underscore.pluralize.to_sym
|
||||
elements << t.link_to(
|
||||
t.content_tag(:span, nil, data: {t: 'helpers.links.cancel'}),
|
||||
[:suppliers, plural_subject],
|
||||
|
||||
Reference in New Issue
Block a user