-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Dear @a-chacon ,
thanks again for this project - great work.
I was stumbling upon an issue, where i want to extend the models you already provide. In particular, the Url model. I want to add an additional qrcode attribute via ActiveStorage with
has_one_attached :qrcode
How can i achieve the latter in the best / rails way?
I see 2 options:
- extend your class with
class UrlWithQRCode < RailsUrlShortener::Urland add functionality there - we could add a
generator(i.e.,rails g urlshortener:install) that basically copies (!) all your models / controllers / ... to respective directories withinapp(i.e., likedevisewould do it). This way, the developer can easily customize / adjust everything.
What do you think?
All the best,
Johannes
Metadata
Metadata
Assignees
Labels
No labels