[Rails-core] ActionCable using Postgres listen/notify

2015-12-20 Thread Sean Linsley
tatus/590526076536938496), so here I am. Are there any objections to adding this? Here's an implementation I wrote with the Tubesock gem: https://gist.github.com/seanlinsley/775e9d934128b62ace8c Sean Linsley -- You received this message because you are subscribed to the Google Groups "

Re: [Rails-core] ActionCable using Postgres listen/notify

2015-12-20 Thread Sean Linsley
r than accessing the instance variable like I was doing ^^’ I also refactored my gist, turning the one 20 line method into two 10 line methods. Though I haven’t actually tested that it still works ¯\_(ツ)_/¯ Sean Linsley > On Dec 20, 2015, at 4:20 PM, richard schneeman > wrote: > > On a p

Re: [Rails-core] ActionCable using Postgres listen/notify

2015-12-21 Thread Sean Linsley
onnect all websockets it knows about that match the given user. Sean Linsley > On Dec 20, 2015, at 7:47 PM, Sean Linsley wrote: > > Hey Richard, in the time between when this post was submitted and when it was > approved for the mailing list, I made some progress reading through the >

Re: [Rails-core] Re: [ANN] Rails 5.0.0.beta1.1, 4.2.5.1, 4.1.14.1, 3.2.22.1, and rails-html-sanitizer 1.0.3 have been released!

2016-01-25 Thread Sean Linsley
Hi Yves-Eric, This probably isn’t the right place to point out that issue. Searching around, I found these tickets: - https://github.com/rails/sprockets-rails/issues/289 - https://github.com/rails/sprockets-rails/issues/237

Re: [Rails-core] Adding flash message as render argument

2016-08-07 Thread Sean Linsley
To prevent top-level variable congestion, this may be better: render :index, flash: {notice: ‘hi’} > On Aug 7, 2016, at 3:17 PM, Tom Prats wrote: > > Currently you can add a flash notice to your render call like so: > > flash[:notice] = "Notice me!" > render :index > > Similar to how it can

Re: [Rails-core] Has anyone worked on adding support for many to many relations using postgres arrays to ActiveRecord

2017-08-26 Thread Sean Linsley
I’ve used Postgres arrays as custom associations before; I’d be willing to help with this, though I don’t have a ton of experience with the ActiveRecord codebase. > On Aug 24, 2017, at 6:31 PM, Michael Giovinco wrote: > > The subject line is probably a little confusing, so here is an example.

Re: [Rails-core] Automatically validate polymorphic belongs_to type column

2018-01-02 Thread Sean Linsley
I normally add an inclusion validation anyway, so encouraging developers to document the associations (for those that don’t normally add a validation) is a nice win that has the potential to save a lot of developer time when searching for or attempting to memorize the associations. If I were to

Re: [Rails-core] [ActiveRecord] [Feature Proposal] Common Table Expression support

2019-01-15 Thread Sean Linsley
While we’re on the subject, I have a PR to get postgres_ext working with Rails 5.2, but need help from someone that has experience with Arel’s internals. https://github.com/danmcclain/postgres_ext/pull/2 Though more broadly I’m of the opinion