Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

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

Open
a-barbieri opened this issue Aug 30, 2018 · 1 comment
Open

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

a-barbieri opened this issue Aug 30, 2018 · 1 comment
Labels

Comments

@a-barbieri
Copy link
Collaborator

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 a-barbieri added the bug label Aug 30, 2018
@a-barbieri
Copy link
Collaborator Author

Same happens with update_attributes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant