binda icon indicating copy to clipboard operation
binda copied to clipboard

Not possible to specify slug during Binda::Category.create

Open a-barbieri opened this issue 6 years ago • 1 comments

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

a-barbieri avatar Aug 30 '18 13:08 a-barbieri

Same happens with update_attributes

a-barbieri avatar Aug 30 '18 13:08 a-barbieri