On Sat, Feb 9, 2013 at 5:12 PM, Johnneylee Rollins
<[email protected]> wrote:

> But I've been having a good time lately of making each file require only
> what it needs to function on its own. Sometimes I have to require every
> file, but most of the time I get to be able to do what rosenfeld likes.

Rails components do that, except that you have to load the root file.
Because if you grep AR and the blank extension appears 100 times...
well, not only that means you are repeating too many require calls, it
means from those with the pass of time possibly 5 are no longer
necessary, and other 10 are missing. Solution: move loading blank to
the main entry point, and do the same with the files grep stats show
as the most used.

active_support/rails.rb was defined using source code statistics by the way.

Of course we are talking about using the components standalone, if you
have loaded a Rails application then you are/should be golden.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to