サクサク読めて、アプリ限定の機能も多数!
Require means "load this right now". autoload means "load this when you need to use it". well, why not just use autoload for everything? Why load anything before it's absolutely needed? One reason is that autoload only works for constants.
yyamano のブックマーク 2012/02/04 04:20
Why are autoload, load_all! and require all used in active_support.rb?[Rails]Require means "load this right now". autoload means "load this when you need to use it". well, why not just use autoload for everything? Why load anything before it's absolutely needed? One reason is that autoload only works for constants.2012/02/04 04:20
Require means "load this right now". autoload means "load this when you need to use it". well, why not just use autoload for everything? Why load anything before it's absolutely needed? One reason is that autoload only works for constants.
このブックマークにはスターがありません。 最初のスターをつけてみよう!
stackoverflow.com2012/02/04
1 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /
Require means "load this right now". autoload means "load this when you need to use it". well, why not just use autoload for everything? Why load anything before it's absolutely needed? One reason is that autoload only works for constants.
yyamano のブックマーク 2012/02/04 04:20
このブックマークにはスターがありません。
最初のスターをつけてみよう!
Why are autoload, load_all! and require all used in active_support.rb?
stackoverflow.com2012/02/04
1 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /