Ruby on Rails contains some very useful functions like blank?
and date time functions that are not present in vanilla ruby.
What is the gem to enables these and how do I use it?
The gem you are referring to is ActiveSupport
and the features can be loaded all at once from
core_ext.rb
(which loads each file in the core_ext Directory) e.g.
require 'active_support/core_ext'
or loaded individually based the features and classes you are interested in e.g.
require 'active_support/core_ext/object/blank'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With