Re: [Rails-core] Creating Proxy-containers with ActiveSupport's delegate, proposing return_value_of keyword argument

2013-08-13 Thread Matt Jones
On Aug 12, 2013, at 7:25 PM, Amiel Martin wrote: > I like this idea and I would use it. > > My only suggestion would be to normally return a new instance of the proxy > object. This makes it easier to use this feature with immutable objects. > I know it would be possible to do this: > > class

[Rails-core] simple_format option for intentionally long line breaks

2013-08-13 Thread Pawel Janiak
There are quite a lot of line break issues with Rails on StackOverflow and the web in general. A lot of solutions are ugly and a lot modify simple_format so I've created a patch that I'd like to hear thoughts on before submitting a PR. I've made a slight modification to split_paragraphs and how

[Rails-core] feature: Line break retention in simple_format

2013-08-13 Thread Pawel Janiak
There are quite a lot of line break issues with Rails on StackOverflow and the web in general. A lot of solutions are ugly and a lot modify simple_format so I've created a patch that I'd like to hear thoughts on before submitting a PR. I've made a slight modification to split_paragraphs and how