section "Creating Admin Notifications & Templates" do AdminNotification.create!( random_locales_attributes( %i[title body].map do |attribute| [attribute, -> { I18n.t("seeds.admin_notifications.proposal.#{attribute}") }] end.to_h ).merge(link: "#{Setting["url"]}/proposals", segment_recipient: "administrators") ).deliver AdminNotification.create!( random_locales_attributes( %i[title body].map do |attribute| [attribute, -> { I18n.t("seeds.admin_notifications.help.#{attribute}") }] end.to_h ).merge(link: "https://crwd.in/consul", segment_recipient: "administrators") ).deliver AdminNotification.create!( random_locales_attributes( %i[title body].map do |attribute| [attribute, -> { I18n.t("seeds.admin_notifications.map.#{attribute}") }] end.to_h ).merge(segment_recipient: "administrators") ).deliver AdminNotification.create!( random_locales_attributes( %i[title body].map do |attribute| [attribute, -> { I18n.t("seeds.admin_notifications.budget.#{attribute}") }] end.to_h ).merge(segment_recipient: "administrators", sent_at: nil) ) end