[Rails-core] [ANN] Rails 5.0.2 has been released!

2017-03-01 Thread Rafael Mendonça França
Hi everyone, I am happy to announce that Rails 5.0.2 has been released. ## CHANGES since 5.0.1 To view the changes for each gem, please read the changelogs on GitHub: * [Action Cable CHANGELOG]( https://github.com/rails/rails/blob/v5.0.2/actioncable/CHANGELOG.md) * [Action Mailer CHANGELOG](

Re: [Rails-core] Organize models in subfolders

2017-03-01 Thread Tom Prats
I'd still be interested in how to make this possible without name-spacing the models. With STI the type column is more presentable to an end user without it. Activity::Something vs. Something. It'd be nice if this were possible (if not the default). Thanks, Tom On Wed, Mar 1, 2017 at 1:25 PM

Re: [Rails-core] Organize models in subfolders

2017-03-01 Thread Maurizio De Santis
It works!!! In many years I've been working with Rails I wasn't aware about this way to organize models. Thank you! For the namespace instead of defining an Activity module I just used the model Activity: # app/models/activity.rb class Activity < ApplicationRecord end #

Re: [Rails-core] Suggestion for a new Rails environment that can be used exclusively for automation testing of functional/system tests

2017-03-01 Thread Chad Woolley
See also this thread: https://groups.google.com/d/topic/rubyonrails-core/kqKoJHcQu9U/discussion ...wherein is discussed (without any official response from core contributors) many of the warts and limitations of RAILS_ENV in a modern, cloud-native-y, 12-factor-y world. -- Chad On Mon, Feb 27,

[Rails-core] Re: Action Cable progress/roadmap

2017-03-01 Thread DHH
Thanks for all your work on these PRs, Vlad. Reviewing them, though, doesn't seem to me like they were ignored. Lots of discussion and back and forth on all of them. A good baseline assumption when a framework or feature in Rails isn't seeing specific updates for a while is that it's doing

[Rails-core] Re: Action Cable progress/roadmap

2017-03-01 Thread Dmitry Polushkin
Good points. Would be great to hear some news from the core team regarding the ActionCable future. On Saturday, February 4, 2017 at 7:05:07 PM UTC, Vlad Dem wrote: > > Hi, everyone! > > I'm wondering are there any plans on future Action Cable development? > > A lot of work has been done in the

[Rails-core] Inconsistent collection setter behaviour (has_many / has_many through)

2017-03-01 Thread Dmitry Polushkin
Collection has a different setter logic for persistent and new record. New record writes changes to the database only after save is triggered, persisted record on the contrary writes changes to the database once ids or array of records assigned via setter. This inconsistency leads to a

[Rails-core] Re: Routes with noqsl db

2017-03-01 Thread Dmitry Polushkin
Looks like you want to use *to_param* method in your models to present a *rid* value generated URLs. On Wednesday, February 15, 2017 at 4:04:25 PM UTC, hartmut bischoff wrote: > > Hi altogether, > > I am working on rails integration of active-orient ( >

[Rails-core] Collection caching: render to strings

2017-03-01 Thread Gleb Mazovetskiy
Hi, I am a contributor to Thredded, a Rails forums engine, and we have an interesting problem. We currently all cache the posts on a topic page using collection caching. This requires the entire post to be cached due to the current collection caching interface, even though only the post