Joined July 2012
·
Posted to
Ruby Core Extends
over 1 year
ago
This is not an alternative to ActiveSupport core extensions. To anwser your question : none.
The idea behind theses gems is the same as the idea of ActiveSupport core extentions : provide more methods because we need them, and ruby don't provide them now.
For example, the 'stealthdelete' function. There is nothing like that in ruby, neither in ActiveSupport core extentions. Nevertheless I want to be able to delete a key from my hash and returning the hash, not the value.
To do something like (rails) : Membre.new :attributes=>params.stealthdelete :action, :controller
I used to have a core_ext folder in my /lib (rails). I transform it into gem to use it through all my projects, and share it.
Achievements
75 Karma
1,790 Total ProTip Views
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Charity
Fork and commit to someone's open source project in need
Forked
Have a project valued enough to be forked by someone else
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
Yes you'r right. I didn't knew about the #except method and it surely is better to use this than my #stealth_delete.
I may be blinded to these functionalities rails provindes because I use rails 2.3 at work.
You'r also right about opening pull request on AS. I never considered this option.
Well, I will check in deep the features AS provide before doing my own.