Re: [Rails-core] Supporting Multiple Buckets within a service

2019-12-03 Thread Tom Rossi
Woo hoo! Thanks everyone! On Tue, Dec 3, 2019 at 9:57 AM George Claghorn wrote: > Yes, that’s in master, too. > > On Tue, Dec 3, 2019 at 2:55 PM Tom Rossi wrote: > > Will there be a solution for "public" buckets? So you don't even need the > pre-signed URL? > &

Re: [Rails-core] Supporting Multiple Buckets within a service

2019-12-03 Thread Tom Rossi
Will there be a solution for "public" buckets? So you don't even need the pre-signed URL? On Mon, Dec 2, 2019 at 10:40 PM Nerdture wrote: > It will. In 6.1, you’ll be able to configure two services that use the >> same service adapter (S3) and different buckets. >> > > Great news! Thanks for

Re: [Rails-core] Re: ActiveJob and :exponentially_longer

2019-11-22 Thread Tom Rossi
+1 I had a similar issue and would welcome it... On Fri, Nov 22, 2019 at 6:33 PM Anthony Ross wrote: > > Hello - Is anyone available to review this PR? I believe I've addressed > all feedback. Thank you! https://github.com/rails/rails/pull/31872 > > Anthony > > > On Friday, February 2, 2018

[Rails-core] ActiveStorage Callbacks

2019-05-20 Thread Tom Rossi
I'm not sure how common this is, but wondering if its worth working on a PR for ActiveStorage to allow you to use callbacks. Something like this for example to run a method after analyze is complete: has_one_attached :artwork, after_analyze: :my_method -- You received this message because you

[Rails-core] Re: [Feature][ActiveRecord] Finding Orphans

2019-04-10 Thread Tom Rossi
Any help with this (my first) PR is appreciated! On Tuesday, April 9, 2019 at 4:32:31 PM UTC-4, Filipe W. Lima wrote: > > Tom's PR can be found at https://github.com/rails/rails/pull/34727. > > On Tuesday, November 27, 2018 at 7:41:53 PM UTC-3, Tom Rossi wrote: >> >> I

[Rails-core] Help with ActiveRecord

2019-01-07 Thread Tom Rossi
Could someone with more experienced with the ActiveRecord point me in the right direction for questions on my first code PR ? I would really appreciate it! Thanks, Tom -- You received this message because you are subscribed to the Google Groups "Ruby

Re: [Rails-core] Re: [Feature][ActiveRecord] Find records with present attribute value more easily

2018-12-18 Thread Tom Rossi
I like the idea of adding this to the where chain so you could do *Person.where.blank(:name)* and *Person.where.present(:name)*. Joshua, let me know if you want to work together on a PR. On Sat, Dec 8, 2018 at 12:01 PM DHH wrote: > I agree that a double negative is iffy. But I don't like

Re: [Rails-core] Re: [Feature][ActiveRecord] Finding Orphans

2018-12-13 Thread Tom Rossi
p my database. >>> What about adding a method scope as "missing_#{relationship_name}" >>> >>> Book.missing_author #without a parent >>> >>> Author.missing_books #without children >>> >>> >>> On Tuesday, November 27, 2018 at 5

Re: [Rails-core] Re: [Feature][ActiveRecord] Find records with present attribute value more easily

2018-12-06 Thread Tom Rossi
What about using "having"? Person.having(:name) On Thu, Dec 6, 2018 at 3:28 AM Greg Navis wrote: > Using "present' might be confusing with the presence validation which is > something different (a blank string is not present but is not nil either). > > Best regards > Greg Navis > > -- > You

[Rails-core] [Feature][ActiveRecord] Finding Orphans

2018-11-27 Thread Tom Rossi
Its common for me to look for orphans and I typically do it like this: Child.eager_load(:parent).where(parents: { id: nil }) I would like to propose putting together a PR for something like this: Child.missing(:parent) Parent.missing(:children) Please let me know if others are interested in