Skip to content

Commit

Permalink
Check for combined first and last name
Browse files Browse the repository at this point in the history
We need to use the SolidusSupport method for checking for
the combined first and last name since Solidus 3 has removed
the deprecated methods from the config.
  • Loading branch information
peterberkenbosch committed Jan 28, 2021
1 parent fb607bf commit e3d3872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/features/fill_addresses_fields.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def fill_addresses_fields_with(address)
zipcode
phone
]
fields += if Spree::Config.has_preference?(:use_combined_first_and_last_name_in_address) && Spree::Config.use_combined_first_and_last_name_in_address
fields += if SolidusSupport.combined_first_and_last_name_in_address?
%w[name]
else
%w[firstname lastname]
Expand Down

0 comments on commit e3d3872

Please sign in to comment.