diff --git a/db/dev_seeds/admin_notifications.rb b/db/dev_seeds/admin_notifications.rb index 132976cf6..fdf61248b 100644 --- a/db/dev_seeds/admin_notifications.rb +++ b/db/dev_seeds/admin_notifications.rb @@ -1,7 +1,7 @@ section "Creating Admin Notifications & Templates" do AdminNotification.create!( random_locales_attributes( - %i[title body].index_with do |attribute| + **%i[title body].index_with do |attribute| -> { I18n.t("seeds.admin_notifications.proposal.#{attribute}") } end ).merge( @@ -12,7 +12,7 @@ section "Creating Admin Notifications & Templates" do AdminNotification.create!( random_locales_attributes( - %i[title body].index_with do |attribute| + **%i[title body].index_with do |attribute| -> { I18n.t("seeds.admin_notifications.help.#{attribute}") } end ).merge(link: "https://crwd.in/consul", segment_recipient: "administrators") @@ -20,7 +20,7 @@ section "Creating Admin Notifications & Templates" do AdminNotification.create!( random_locales_attributes( - %i[title body].index_with do |attribute| + **%i[title body].index_with do |attribute| -> { I18n.t("seeds.admin_notifications.map.#{attribute}") } end ).merge(segment_recipient: "administrators") @@ -28,7 +28,7 @@ section "Creating Admin Notifications & Templates" do AdminNotification.create!( random_locales_attributes( - %i[title body].index_with do |attribute| + **%i[title body].index_with do |attribute| -> { I18n.t("seeds.admin_notifications.budget.#{attribute}") } end ).merge(segment_recipient: "administrators", sent_at: nil) diff --git a/db/dev_seeds/widgets.rb b/db/dev_seeds/widgets.rb index d77940f7d..c842b1d49 100644 --- a/db/dev_seeds/widgets.rb +++ b/db/dev_seeds/widgets.rb @@ -9,7 +9,7 @@ section "Creating header and cards for the homepage" do Widget::Card.create!( random_locales_attributes( - %i[title description link_text label].index_with do |attribute| + **%i[title description link_text label].index_with do |attribute| -> { I18n.t("seeds.cards.header.#{attribute}") } end ).merge( @@ -21,7 +21,7 @@ section "Creating header and cards for the homepage" do Widget::Card.create!( random_locales_attributes( - %i[title description link_text label].index_with do |attribute| + **%i[title description link_text label].index_with do |attribute| -> { I18n.t("seeds.cards.debate.#{attribute}") } end ).merge( @@ -33,7 +33,7 @@ section "Creating header and cards for the homepage" do Widget::Card.create!( random_locales_attributes( - %i[title description link_text label].index_with do |attribute| + **%i[title description link_text label].index_with do |attribute| -> { I18n.t("seeds.cards.proposal.#{attribute}") } end ).merge( @@ -45,7 +45,7 @@ section "Creating header and cards for the homepage" do Widget::Card.create!( random_locales_attributes( - %i[title description link_text label].index_with do |attribute| + **%i[title description link_text label].index_with do |attribute| -> { I18n.t("seeds.cards.budget.#{attribute}") } end ).merge(