This project is archived and is in readonly mode.

#5504 ✓invalid
clocksarestupid

ActiveSupport 3.0 is broken outside of Rails

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

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

Comments and changes to this ticket

  • Neeraj Singh

    Neeraj Singh August 31st, 2010 @ 02:19 AM

    • 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
    
  • Marjan Krekoten'

    Marjan Krekoten' August 31st, 2010 @ 06:26 AM

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

    require 'active_support/all'
    

    or only needed for you modules.

  • Marjan Krekoten'

    Marjan Krekoten' August 31st, 2010 @ 06:28 AM

    Oops, somehow I didn't see previous comment.

  • Ryan Bigg

    Ryan Bigg October 9th, 2010 @ 09:44 PM

    • Tag cleared.

    Automatic cleanup of spam.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages