4

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?

0

1 Answer 1

8

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'
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.