Skip to content

Instantly share code, notes, and snippets.

@shirts
Last active May 10, 2017 04:49
Show Gist options
  • Save shirts/ab568a65ac1f82abd15dd9f614d54b01 to your computer and use it in GitHub Desktop.
Save shirts/ab568a65ac1f82abd15dd9f614d54b01 to your computer and use it in GitHub Desktop.
Active Support Helpers
# "In order to have a near-zero default footprint, Active Support does not
# load anything by default. It is broken in small pieces so that you can
# load just what you need, and also has some convenience entry points to
# load related extensions in one shot, even everything."
require 'active_support'
# https://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/object/blank.rb
require 'active_support/core_ext/object/blank'
# https://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/object/inclusion.rb
require 'active_support/core_ext/object/inclusion'
# https://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/object/try.rb
# http://api.rubyonrails.org/classes/Object.html#method-i-try
require 'active_support/core_ext/object/try'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment