Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for labels through additional columns in tags table? #1096

Open
palladius opened this issue Dec 31, 2022 · 0 comments
Open

Support for labels through additional columns in tags table? #1096

palladius opened this issue Dec 31, 2022 · 0 comments

Comments

@palladius
Copy link

Hi, fist I'm a huge fan , used my first acts-as-taggable 10 years ago, and happy to see this gem flourishing.

I was looking at a labelling mechanism for rails, the ability to inject labels like [:env, 'prod'] and [:env, 'dev'] into multiple models.

I was wondering (since there's no acts-as-labellable gem) if I can simply achieve this by using the acts-as-taggable an tweaking it a bit (eg, add a column label_value) to the tags column. I don't want to get it too dirty, so I would love some guidance to understand if this is doable already or if this would require some major rewriting. For instance, the primary key would have to switch from single to double column, and maybe I would have to touch the code in too many places to make it not worthwhile.

I seek your guidance in understanding how it can be done, and I volunteer to file a PR on documentation after I get this working.

Thanks in advance.

@palladius palladius changed the title Support for additional columns to tags Support for labels through additional columns in tags table? Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant