Skip to content

Commit

Permalink
limit to 12 flowers
Browse files Browse the repository at this point in the history
  • Loading branch information
lvangool committed Nov 19, 2024
1 parent 4d7b99b commit 3a34059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/flowers_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def random_color
end

def handle_flower_creation
if Flower.count >= 16
if Flower.count >= 12
remove_random_flowers
else
create_success_response
Expand Down

0 comments on commit 3a34059

Please sign in to comment.