Re: [Rails-core] [Feature][ActiveStorage] Pre-defined Variants

2018-11-27 Thread Abhishek Chandrasekhar
@kasper - Allowing the one-off options on a given variant is an even better approach and just as easily implementable. Thanks for the suggestion. > I’m not looking to see this through though, so you’d have to get George Claghorn or someone else on board for this ride. Totally understood :)

Re: [Rails-core] [Feature][ActiveStorage] Pre-defined Variants

2018-11-27 Thread Kasper Timm Hansen
I do remember proposing this at one point internally: has_one_attached :avatar do |attachable| attachable.variant :small, resize: ’100x100>’ … end I’m also fine with exposing it as `variant(:small)` or for one offs `variant(:small, caption: ’foo’)`. I’m not looking to see this through