Using a module within another module

Juan Medín wrote:


I'm trying to use the module
ActiveSupport::CoreExtensions::Time::Calculations in a helper module,
but I get a nasty error. My module looks like this:

require 'rubygems'
gem 'activesupport'

This leaves activesupport unloaded.

The (now) prefered usage is:

require "rubygems"
require "activesupport" # picks up latest version of activesupport


require "rubgems"
gem "activesupport", someversion # defines which version to load
require "activesupport"

Granted, the message "require_gem is obsolete, use gem instead" is

Just wanted to note this - I cannot help with your original message.