Using a module within another module

Juan Medín wrote:

Hi,

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

or

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

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

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

Stefan