Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

ActiveSupport 3.0 is broken outside of Rails

#5504

Summary:
ActiveSupport 3.0 doesn't load properly outside of Rails 3.0.

Steps to Reproduce:
$> echo "require 'active_support';''.blank?" | ruby -r rubygems

Does not reproduce:
$> echo "gem 'activesupport', '~>2.2'; require 'active_support';''.blank?" | ruby -r rubygems

Reported by clocksarestupid · August 30th, 2010 @ 10:25 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Neeraj Singh
    Neeraj Singh
    • State changed from new to invalid
    • Importance changed from to Low

    In rails3 AS does not load all the modules. It allows you to pick the modules you want. For example it eager autoload JSON module. So you can try

    $> echo "require 'active_support';''.to_json" | ruby -r rubygems
    

    In order to load all modules require all.rb

    $> echo "require 'active_support/all';''.blank?" | ruby -r rubygems
    

    August 31st, 2010 @ 02:19 AM

  2. Marjan Krekoten'
    Marjan Krekoten'

    Well, after making it more modular in Rails 3, you should use

    require 'active_support/all'
    

    or only needed for you modules.

    August 31st, 2010 @ 06:26 AM

  3. Marjan Krekoten'
    Marjan Krekoten'

    Oops, somehow I didn't see previous comment.

    August 31st, 2010 @ 06:28 AM

  4. Ryan Bigg
    Ryan Bigg
    • Tag cleared.

    Automatic cleanup of spam.

    October 9th, 2010 @ 09:44 PM