Elad Meidar
2014-Aug-27 09:55 UTC
Re: Abridged summary of rubyonrails-core@googlegroups.com - 1 update in 1 topic
Hi All, Since strong parameters came out I was struggling with the thought that I need to keep an extra method around in the controller for parameter whitelisting. It was absolutely right to move the responsibility to whitelist end user submissions from the ActiveModel to ActionController - but the extra method in the controller was bothering me still. So i did this thing: https://github.com/ShinobiDevs/better_strong_params/blob/master/lib/better_strong_params.rb (Not as sharp as i would expect, consider this a WIP) Does this look like a good direction to go? good enough for a core PR when i’m done or should i leave it as a gem? — Elad Meidar, shinobidevs.com On Tue, Aug 26, 2014 at 2:48 PM, null <rubyonrails-core@googlegroups.com> wrote:> ============================================================================> Today's topic summary > ============================================================================> Group: rubyonrails-core@googlegroups.com > Url: > https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!forum/rubyonrails-core/topics > - why #add_column doesn't support an :index option? [1 Update] > http://groups.google.com/group/rubyonrails-core/t/1254ff98693f2d29 > ============================================================================> Topic: why #add_column doesn't support an :index option? > Url: http://groups.google.com/group/rubyonrails-core/t/1254ff98693f2d29 > ============================================================================> ---------- 1 of 1 ---------- > From: powiii <corestudiosinc@gmail.com> > Date: Aug 25 12:10PM -0700 > Url: http://groups.google.com/group/rubyonrails-core/msg/e9bd3575e59f7114 > I'm curious how come the #add_column method in migrations does not support > an optional :index option, which would also create an index for that column. > Since there is the possibility to do > -- > You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page: > https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!forum/rubyonrails-core/join > . > To unsubscribe from this group and stop receiving emails from it send an email to rubyonrails-core+unsubscribe@googlegroups.com.-- 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+unsubscribe@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at http://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.