Skip to content

Commit

Permalink
Name ** so Ruby 3.0 works
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspth committed Jan 14, 2024
1 parent b3da967 commit 112f3e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/dummy/db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
user_counter, email_address_counter = 0, 0
users.defaults name: -> { "Customer #{user_counter += 1}" },
email_address: -> { "email_address#{email_address_counter += 1}@example.com" }
def users.create(*, unique_by: :email_address, **) = super
def users.create_labelled(label, **) = create(label, **)
def users.create(*, unique_by: :email_address, **o) = super
def users.create_labelled(label, **o) = create(label, **o)

section :stems
section :leafs
def plans.upsert(*, unique_by: :title, **) = super
def plans.upsert(*, unique_by: :title, **o) = super

section do
seed :accounts, :data
Expand Down

0 comments on commit 112f3e7

Please sign in to comment.