- 24 8月, 2012 3 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
Model.select takes a variable list of arguments
-
由 Isaac Sanders 提交于
This is a cleaner version of #6916. Closes #3165.
-
- 23 8月, 2012 12 次提交
-
-
由 Vijay Dev 提交于
Update the documentation for the :autosave option on belongs_to
-
由 David Celis 提交于
I've noticed a caveat with the :autosave option biting people before. Questions arise about why they must explicitly save an associated object in their own before_save callbacks. I've updated the documentation as such to note to users that the :autosave callback occurs before any user defined callbacks. They must save the associated record themselves if altering it in their own callbacks. Signed-off-by: NDavid Celis <david@davidcelis.com>
-
由 José Valim 提交于
This reverts commit b0ab8dc0 because it was removing the contents of the message when we did not have any tag. A test case is also committed.
-
由 José Valim 提交于
The reason the test was failing was because when the test invokes `app.config`, the app is loaded and, as `eager_load` is set to true, it disables the dependency loading mechanism, so controllers that are later defined are not loaded.
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Aaron Patterson 提交于
-
由 Xavier Noria 提交于
The revised test assumed that the default permissions of a file matched the umask of the process, but in the general case that depends also on the file system. This test was failing in the /vagrant shared folder of Rails development boxes.
-
由 Vijay Dev 提交于
-
由 Vijay Dev 提交于
-
由 Vijay Dev 提交于
Extended documentation for `time_ago_in_words` helper
-
由 Vijay Dev 提交于
-
- 22 8月, 2012 25 次提交
-
-
由 Carlos Antonio da Silva 提交于
Remind user a good way to generate a secret code [ci skip]
-
由 Teng Siong Ong 提交于
-
由 Soon Van 提交于
-
由 Rafael Mendonça França 提交于
AR::Relation#model would be a better API than AR::Relation#klass
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
Remove j alias for ERB::Util.json_escape
-
由 Carlos Antonio da Silva 提交于
These tests rely on "make_basic_app", which is a faster version that does not need to create the whole app directory structure.
-
由 Carlos Antonio da Silva 提交于
Avoid output with config option not set when running some tests.
-
由 José Valim 提交于
Improve eager load on Rails
-
由 Carlos Antonio da Silva 提交于
Clarify and correct the description for the --full option of the plugin_new generator. [ci skip]
-
由 lazylester 提交于
-
由 Rafael Mendonça França 提交于
-
由 Aaron Patterson 提交于
-
由 José Valim 提交于
-
由 José Valim 提交于
The new option allows any Ruby namespace to be registered and set up for eager load. We are effectively exposing the structure existing in Rails since v3.0 for all developers in order to make their applications thread-safe and CoW friendly.
-
由 José Valim 提交于
Previously, ActiveSupport::Autoload was global and reserved for usage inside Rails. This pull request makes it local, fixes its test (they were not being run because its file was named wrongly) and make it part of Rails public API.
-
由 José Valim 提交于
The flag was mainly used to add a Rack::Lock middleware to the stack, but the only scenario the lock is desired is in development. If you are deploying on a not-threaded server, the Rack::Lock does not provide any benefit since you don't have concurrent accesses. On the other hand, if you are on a threaded server, you don't want the lock, since it defeats the purpose of using a threaded server. If there is someone out there, running on a thread server and does want a lock, it can be added to your environment as easy as: `use Rack::Lock`
-
由 José Valim 提交于
Previously, the eager load behavior was mostly coupled to config.cache_classes, however this was suboptimal since in some environments a developer may want to cache classes but not necessarily load them all on boot (for example, test env). This pull request also promotes the use of config.eager_load set to true by default in production. In the majority of the cases, this is the behavior you want since it will copy most of your app into memory on boot (which was also the previous behavior). Finally, this fix a long standing Rails bug where it was impossible to access a model in a rake task when Rails was set as thread safe.
-
由 Rafael Mendonça França 提交于
Fix for #5200
-
由 Dave Desrochers 提交于
reset_counters() was crashing when there were multiple belongs_to associations with the same foreign key. This closes #5200.
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
option_tags coerced to "" instead of nil Closes #7404
-
由 Sandeep 提交于
-
由 Rafael Mendonça França 提交于
Refactor AR::Result or inherits. Because we have redundant codes about column_types.
-
由 kennyj 提交于
-