Why is activeresource.rb just calling active_resource.rb?

Here is the contents of activeresource.rb :

 require 'active_resource' 

Can anyone explain the logic behind this?

Why not just have activeresource.rb contain what active_resource.rb contains and forget about the additional require expression?

+4
source share
1 answer

David Heinemayer Hanson added activeresource.rb to the code base so people can fulfill their requirements based on the name of the pearl and not have to remember that despite the gem being called activeresource, they need to require active_resource.rb

The original file is still needed by everyone who has already used it, so only the old one is required for the new file.

Check comment for activeresource.rb

Edit:

Found the original upgrade ticket that led to this change

+7
source

Source: https://habr.com/ru/post/1286392/


All Articles