Hey,
It would be useful to inspect the record in question every time an
ActiveRecord exception is raised. This is currently possible with some
(ActiveRecord::RecordNotSaved for instance), but not others. Any idea what
the rationale for this selection is? I initially thought that you can query
en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
Mohamed Wael Khobalatte
--
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
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 rubyonrails-core@googlegroups.com.
> Visit
e.com/group/rubyonrails-core.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
Mohamed Wael Khobalatte
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To unsubscribe from this group and
nrails-core@googlegroups.com.
> Visit this group at http://groups.google.com/group/rubyonrails-core.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
Mohamed Wael Khobalatte
--
You received this message because you are subscribed to the Google Groups "
Gotcha. In this case, since calls to Model.last(n) is inherently
inefficient (loading everything and placing a limit), it's good to keep it
till the end of the chain.
On Fri, Jul 19, 2013 at 11:55 AM, Tejas Dinkar wrote:
> On Jul-19-2013, at 8:08 PM, Mohamed Wael Khobalatte <
>
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 rubyonrails-core@googlegroups.com.
> Visit this group at http://groups.google.com/group/rubyonrails-core.
> For more opti
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/groups/opt_out.
>
--
Mohamed Wael Khobalatte
--
You received this message because you are subscri
Hey,
Is there any reason why Rails partials don't lazily pick up the I18n scope
like the views they appear in? The t(".some_key") is convenient and I would
like to use it inside partials as well. I currently resort to forcing a
scope on all my partials like so: t("some_key", scope:
"controller
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 rubyonrails-core@googlegroups.com.
> Visit this group at http://groups.google.com/group/rubyonrails-core.
> For more opt
ed 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 rubyonrails-core@googlegroups.com.
> Visit this
ls-core+unsubscr...@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.
>
--
Mohamed Wael Khobalatte
--
You re
tp://groups.google.com/group/rubyonrails-core.
> For more options, visit https://groups.google.com/d/optout.
>
--
Mohamed Wael Khobalatte
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To unsubscribe from this g
>
> * Postgres: not supported
> * Oracle: not supported (but maybe hackable with ROWNUM tricks)
> * SQLite3: supported if enabled at compile time
> * MySQL: supported
> * SQL Server: not supported (but maybe with a TOP subquery?)
>
> --Matt Jones
>
--
Mohamed Wael Kh
.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.
>
--
Mohamed Wael Khobalatte
--
You received this message because you ar
Hey,
I found myself having to use jRuby in my app for a very very small but
essential piece of code. The code in question is bundled in a gem which I
require in Bundler under the jRuby platform, with all the rest of my gems
put under MRI. This was unfortunately necessary otherwise if I don't p
in a initialiser, you may check the platform
> using bundler stuff:
>
> if Bundler.current_ruby.jruby?
> # jruby patch code
> end
>
> if Bundler.current_ruby.ruby?
> # ruby patch code
> end
>
> It's working great here ;)
>
> PS: I'm not sure if it
ail to rubyonrails-core+unsubscr...@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.
>
--
Mohamed Wael Khobal
Hey,
Are there any updates or news to report with regards to the Rails projects
adapted at the Summer of Code program? I am specifically interested in any
refactorings that might affect functional tests, as I rely on those
regularly, in both old and new (i.e. Rails > 4.0) projects.
Best,
--
cribe 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 rubyonrails-core@googlegroups.com.
> Visit this group at http://groups.google.com/group/rubyonrails-core.
> For more options, vi
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.
>
--
Mohamed Wael Khobalatte
--
You received this message because you are subscribed to the Google Groups
nrails-core.
> For more options, visit https://groups.google.com/d/optout.
>
--
Mohamed Wael Khobalatte
--
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 emai
to
> your mailers, and set the locale there before actually creating the mail
> object/rendering the view.
>
> On Wed, Oct 22, 2014 at 1:07 PM, Mohamed Wael Khobalatte <
> wael.khobala...@gmail.com> wrote:
>
>> There shouldn't be any problem since deliver_later wi
ting
>>
>> --
> 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 th
Thanks everyone.
>>
> --
> 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
>> For more options, visit https://groups.google.com/d/optout.
>>>
>>--
> 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 rubyon
byonrails-core+unsubscr...@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.
>
--
Mohamed Wael Khobalatt
/rubyonrails-core.
> For more options, visit https://groups.google.com/d/optout.
>
--
Wael Khobalatte
--
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 a
/groups.google.com/group/rubyonrails-core.
> For more options, visit https://groups.google.com/d/optout.
>
--
Wael Khobalatte
--
Wael Khobalatte
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To unsubscribe fro
ail to rubyonrails-core+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-core@googlegroups.com.
> Visit this group at https://groups.google.com/group/rubyonrails-core.
> For more options, visit https://groups.google.com/d/optout.
>
--
Wael Khobalatt
to rubyonrails-core+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-core@googlegroups.com.
> Visit this group at https://groups.google.com/group/rubyonrails-core.
> For more options, visit https://groups.google.com/d/optout.
>
--
Wael Khobalatte
--
pendencies.
>
> On Monday, April 4, 2016 at 4:23:51 AM UTC-5, Mohamed Wael Khobalatte
> wrote:
>>
>> Conversion between types is fairly common in Ruby. With that said I'd
>> recommend you look into `ActiveModel::Type::Boolean.new.cast(my_value)`,
>> which handles th
"Yes" and we need to submit `false` to the API. We've been proactive about
> testing value equality, but I thought this would be an easier
> implementation and might be useful to the community.
>
> On Monday, April 4, 2016 at 8:45:52 AM UTC-5, Mohamed Wael Khobalatte
> wrot
ls-core+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-core@googlegroups.com.
> Visit this group at https://groups.google.com/group/rubyonrails-core.
> For more options, visit https://groups.google.com/d/optout.
>
--
Wael Khobalatte
--
You receive
ribe 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 rubyonrails-core@googlegroups.com.
> Visit this group at https://groups.google.com/group/rubyonrails-core.
> For more options
ource. A bit contrived but very helpful in
the situation I described at the outset.
On Fri, Dec 2, 2016 at 9:47 AM, Matt Jones wrote:
>
> > On Dec 1, 2016, at 6:07 PM, Wael Khobalatte
> wrote:
> >
> > Hey,
> >
> > It would be useful to inspect the record
to rubyonrails-core@googlegroups.com.
> Visit this group at https://groups.google.com/group/rubyonrails-core.
> For more options, visit https://groups.google.com/d/optout.
>
--
Wael Khobalatte
--
You received this message because you are subscribed to the Google Groups "Ruby
> I agree it’s probably scope-creep to deal with malformed keys anywhere in
> the file, but it doesn’t seem outrageous to check if there’s a top level
> key which matches the current RAILS_ENV, and bail if not?
>
> Chris.
>
>
> On Fri, Mar 17, 2017 at 2:52 PM, Mohamed Wael
ussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-core/9467a1d7-940a-4231-88b8-353264ef72a9%40googlegroups.com
> <https://groups.google.com/d/msgid/rubyonrails-core/9467a1d7-940a-4231-88b8-353264ef72a9%40googlegroups.com?utm_medium=email&utm_source=footer>
>
39 matches
Mail list logo