This project is archived and is in readonly mode.
AS dependency load order bug
-
David Trasbo
- Assigned user set to Ryan Bigg
This issue can be duplicated with Rails 2.3.5:
➜ code rails -v Rails 2.3.5 ➜ code irb ruby-1.8.7-p249 > require 'rubygems' => true ruby-1.8.7-p249 > require 'active_support/core_ext/numeric/time' => true ruby-1.8.7-p249 > 42.days.ago NoMethodError: undefined method `current' for Time:Class from /Users/dtrasbo/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-3.0.0.beta2/lib/active_support/duration.rb:67:in `ago' from (irb):4However, Rails 3 has been refactored to avoid this type of issues - all files (should) explicitly declare what they depend on so that they can be required stand-alone. I think this ticket can be closed, unless it would be relevant to fix this in the maintenance branch of Rails 2.3.
-
Ryan Bigg
- State changed from new to resolved
Agreed.
In Rails 3 there was a great ActiveSupport re-shuffling in order to be able to do things like this. I suggest moving to Rails 3 if you want it to be as simple as it should be.