Re: [Rails-core] ActiveStorage and Database Cloning

2020-02-12 Thread George Claghorn
The plan is for Active Storage to use a three-level configuration for multiple services, like Active Record with multiple databases: primary: production: service: S3 # ... development: service: Disk # ... avatars: production: service: S3 public:

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

2019-12-02 Thread George Claghorn
“Even when the pull request gets fully released, I don't know it will support my use case.” It will. In 6.1, you’ll be able to configure two services that use the same service adapter (S3) and different buckets. Then you can specify which one to use on a per-attachment basis. -- You

[Rails-core] [ANN] Rails 6.0.1 is released

2019-11-05 Thread George Claghorn
Hi everyone, I am happy to announce that Rails 6.0.1 has been released. CHANGES since 6.0.0 To view the changes for each gem, please read the changelogs on GitHub: • Action Cable CHANGELOG • Action Mailbox CHANGELOG • Action Mailer CHANGELOG • Action Pack CHANGELOG • Action Text

[Rails-core] [ANN] Rails 6.0.1.rc1 has been released

2019-10-31 Thread George Claghorn
Hi everyone, I am happy to announce that Rails 6.0.1.rc1 has been released. If no regressions are found, expect the final release on Tuesday, November 5, 2019. If you find one, please open an [issue on GitHub](https://github.com/rails/rails/issues/new) so that we can fix it before the

Re: [Rails-core] Deprecate strip_heredoc?

2019-06-08 Thread George Claghorn
+1 for deprecating. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to this group, send email to

Re: [Rails-core] [ActiveJob] Discard job not based on exception type

2019-05-02 Thread George Claghorn
You can use rescue_from instead of discard_on: https://api.rubyonrails.org/classes/ActiveSupport/Rescuable/ClassMethods.html On Thu, May 2, 2019 at 8:44 AM Duka wrote: > Hello, > > I have seem Rails Guides about feature request and Im posting this > idea/issue here, in case of someone is

Re: [Rails-core] [ActiveJob] Add discard_on ActiveJob::DeserializationError to ActiveStorage::AnalyzeJob

2019-02-12 Thread George Claghorn
Do you know why the AnalyzeJobs are failing to find their blobs? Are you deleting blobs immediately after creating them, or...? On Tue, Feb 12, 2019 at 11:03 AM smarder via Ruby on Rails: Core < rubyonrails-core@googlegroups.com> wrote: > I have a growing list of failed ActiveStorage::AnalyzeJob

Re: [Rails-core] Re: [ActiveStorage] Feature Request: attachment validations

2018-11-27 Thread George Claghorn
Validations are planned for Rails 6. Here’s a rough sketch of the API I have in mind: validates_attached :logo, presence: true, byte_size: { less_than: 10.megabytes, message: "must be smaller than 10 MB" }, content_type: /\Aimage\// I intended to implement this myself, and laid the

Re: [Rails-core] [Feature][ActiveStorage] add option for proxying files to allow CDN caching

2018-11-02 Thread George Claghorn
proxy method >- breaks provider abstraction >- Changing providers will require a fair amount of config changes to > work with CDN >- less load on application server >- defaults to a long service_urls_expire_in > > On Friday, November 2, 2018 at 10:36:58 PM

Re: [Rails-core] Re: Attachments should be detached when assigned a blank value

2018-07-16 Thread George Claghorn
I think I’m okay with recognizing a special value so that you can more easily delete an attachment via a form, but given that we can choose any value, I’d prefer something other than an empty string (like "delete" or { "delete" => true }). On Mon, Jul 16, 2018 at 12:33 AM Kyle Fox wrote: >

[Rails-core] Re: Add support for sql comments

2013-01-04 Thread George Claghorn
37signals released a gem called Marginalia that does something similar: https://github.com/37signals/marginalia. On Friday, January 4, 2013 8:59:34 PM UTC-5, grosser wrote: It would be great to be able to annotate sql with comments to tell where a query came from/or user/account runs it -