mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-22 05:18:51 +00:00
Can set producer_profile_only using welcome page
This commit is contained in:
@@ -19,6 +19,7 @@ module Admin
|
||||
def set_sells
|
||||
enterprise = Enterprise.find(params[:id])
|
||||
attributes = { sells: params[:sells] }
|
||||
attributes[:producer_profile_only] = !!params[:producer_profile_only] if params[:sells] == 'none'
|
||||
attributes[:shop_trial_start_date] = Time.now if params[:sells] == "own"
|
||||
|
||||
if %w(none own).include?(params[:sells])
|
||||
|
||||
Reference in New Issue
Block a user