binda
binda copied to clipboard
Not possible to specify slug during Binda::Category.create
Expected behavior
I want to set the slug
of a Binda::Category as I want.
Actual behavior
THe slug is created after the name. So My new category
can only be my-new-category
even if I specify slug: "something-else"
.
How to reproduce the issue
Run the following command from Rails console:
Binda::Category.create(name: "My new category", slug: "something-else")
System configuration
Binda version: 0.1.9
Rails version: 5.1.2
Same happens with update_attributes