On 1/24/07, Carl Drinkwater <carl@carldr.com>
wrote:>
> Hi all,
>
> I wonder if someone could clarify the purpose of REQUIRE_GEM_VERSION to me?
>
> Whilst it does indeed require the appropriate version of the Rails gem,
> I took it that it would also require the versions of the various
> frameworks which were part of that version of Rails - That is, it would
> require ActiveRecord 1.14.4 for Rails 1.1.6 and not 1.15.1 if Rails
> 1.2.1 were installed.
That is indeed the intention, and if it doesn''t seem to work right,
please open up a ticket at http://dev.rubyonrails.org.
> Looking at the require_frameworks method in lib/initializer.rb,
it''s
> obvious that this isn''t the case :
>
> def require_frameworks
> configuration.frameworks.each { |framework| require(framework.to_s) }
> end
I believe that config.frameworks is only used when you have
vendor/rails in place, so it''s a bit of a red herring.
> It would seem to me that if you use REQUIRE_GEM_VERSION that is would
> make sense for Rails to load the versions of the frameworks which
> comprised that version. Or am I misunderstanding it''s purpose?
>
> And also, what is the supported why of binding to earlier releases of
> the various frameworks - require_gem ''framework,
''x.y.z'' in environment.rb?
>
>
> Regards,
> Carl Drinkwater | 29degrees Ltd
>
> 29degrees.co.uk - Bespoke Web Application Development.
> codegolf.com - Can you craft the smallest code?
>
> >
>
--
Cheers
Koz
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-core-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---