I'm not sure if this is the right place to ask about this, so my apologies
if it is not.
I am interested in writing a Gem that takes advantage of ActiveSupport
durations, but I don't want to require using core extensions in order to
use my gem. I notice that there is a ActiveSupport::Duration
By requiring active_support/duration you’re already forcing core extensions
on your users. Take a look at
https://github.com/rails/rails/blob/master/activesupport/lib/active_support/duration.rb#L1-L2
(And if you look at those files, they in turn require even more things from
core_ext).
I noticed today, when I mistyped the keyword references as reference
that rails g model doesn't enforce the types of attributes added to a
model, so when the migration is run, an error occurs. Is there a reason
this isn't enforced? Since generate model creates a migration by default,
it would
Thanks for pointing that out. My question is apparently moot, then.
Is there any desire to see ActiveSupport refactored such that more of its
functionality is available without having to use core extensions?
On Saturday, March 21, 2015 at 2:00:12 PM UTC-7, Nicolás Sanguinetti wrote:
By
Related: https://github.com/rails/rails/pull/17985
--
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