aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove meta Sesion Migration generatorPrem Sichanugrist2012-08-242-16/+0
|
* Update guide/release note about AR::SessionStorePrem Sichanugrist2012-08-244-14/+6
|
* Extract ActiveRecord::SessionStore from RailsPrem Sichanugrist2012-08-2418-947/+10
| | | | | This functionality will be available from gem `active_record-session_store` instead.
* Merge pull request #7058 from frodsan/fix_as_random_testsRafael Mendonça França2012-08-246-25/+36
|\ | | | | Fix tests that depend on run order
| * Fix ActionMailer tests that depend on run orderFrancesco Rodriguez2012-08-231-5/+9
| |
| * Fix ActiveModel tests that depend on run orderFrancesco Rodriguez2012-08-231-6/+4
| |
| * Fix ActiveSupport tests that depend on run orderFrancesco Rodriguez2012-08-234-14/+23
| |
* | simplifies a regexpXavier Noria2012-08-241-1/+1
| | | | | | | | | | The new regexp has less work to do, we anchor a fixed string at the end and need no group.
* | ivar will always be defined, so stop checkingAaron Patterson2012-08-231-3/+1
| |
* | mysql does not build on Ruby 2.0.0 at the momentAaron Patterson2012-08-231-1/+1
|/
* Merge pull request #7434 from frodsan/select_list_argumentsAaron Patterson2012-08-232-11/+20
|\ | | | | Model.select takes a variable list of arguments
| * Model.select takes a variable list of arguments.Isaac Sanders2012-08-232-11/+20
|/ | | | | | This is a cleaner version of #6916. Closes #3165.
* Merge pull request #7061 from davidcelis/masterVijay Dev2012-08-231-1/+3
|\ | | | | Update the documentation for the :autosave option on belongs_to
| * Update the documentation for the :autosave optionDavid Celis2012-08-231-1/+3
|/ | | | | | | | | | | 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: David Celis <david@davidcelis.com>
* Revert "Use join without default separator"José Valim2012-08-232-2/+7
| | | | | | This reverts commit b0ab8dc0b2b0f580ffe5ac9ff57fd13152e18577 because it was removing the contents of the message when we did not have any tag. A test case is also committed.
* Fix failure on middleware/exceptions_testJosé Valim2012-08-232-11/+5
| | | | | | | 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.
* Update the ducumentation about the before_eager_load callback [ci skip]Rafael Mendonça França2012-08-221-1/+1
|
* before_eager_load only runs when eager_load is trueRafael Mendonça França2012-08-221-4/+4
|
* skip the memcache tests if the memcache server is not upAaron Patterson2012-08-222-48/+50
|
* revises a brittle test in Active SupportXavier Noria2012-08-222-12/+22
| | | | | | | 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.
* edit secret token template comment [ci skip]Vijay Dev2012-08-231-1/+1
|
* copy edit the time_ago_in_words helper docsVijay Dev2012-08-231-4/+4
|
* Merge pull request #7398 from iamvery/time_ago_in_words-docsVijay Dev2012-08-221-0/+7
|\ | | | | Extended documentation for `time_ago_in_words` helper
| * Extended documentation for `time_ago_in_words` helperJay Hayes2012-08-201-0/+7
| |
* | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-08-222-19/+18
|\ \
| * | giving a pause usually made for e.g. in sentences [ci skip]Soon Van2012-08-211-15/+14
| | |
| * | Revert "association_basics, updated how inverse_of works"Rafael Mendonça França2012-08-201-3/+2
| | | | | | | | | | | | | | | | | | This reverts commit 8cb9460437eddde6952fbebbc969203cd4d00294. Reason: #7377 was merged and it fixes this behavior.
| * | association_basics, updated how inverse_of worksOlli Huotari2012-08-201-2/+3
| | | | | | | | | | | | Fixed bug in the example code. A bit related to rails issue in  https://github.com/rails/rails/issues/3223
| * | Make a doc example output in match actual outputEvan Farrar2012-08-151-4/+4
| | | | | | | | | | | | | | | Make doc output in grouped_options_for_select divider example match actual output. The options groups were in backwards order of actual.
* | | Merge pull request #7413 from siong1987/secret_tokenCarlos Antonio da Silva2012-08-221-0/+3
|\ \ \ | | | | | | | | Remind user a good way to generate a secret code [ci skip]
| * | | remind user a good way to generate a secret code.Teng Siong Ong2012-08-211-0/+3
|/ / /
* | | Merge pull request #6606 from amatsuda/ar_relation_model_methodRafael Mendonça França2012-08-212-0/+6
|\ \ \ | | | | | | | | AR::Relation#model would be a better API than AR::Relation#klass
| * | | AR::Relation#model would be a better API than AR::Relation#klassAkira Matsuda2012-06-032-0/+6
| | | |
* | | | Add CHANGELOG entry for #3578 [ci skip]Rafael Mendonça França2012-08-212-0/+10
| | | |
* | | | Merge pull request #3578 from amatsuda/remove_j_alias_for_json_escapeRafael Mendonça França2012-08-211-7/+0
|\ \ \ \ | | | | | | | | | | Remove j alias for ERB::Util.json_escape
| * | | | Remove j alias for ERB::Util.json_escapeAkira Matsuda2011-11-091-7/+0
| | | | |
* | | | | Remove app building setup/teardown for remote ip railtie testsCarlos Antonio da Silva2012-08-211-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | These tests rely on "make_basic_app", which is a faster version that does not need to create the whole app directory structure.
* | | | | Set eager load option in "make_basic_app" for railties testsCarlos Antonio da Silva2012-08-211-0/+1
| | | | | | | | | | | | | | | | | | | | Avoid output with config option not set when running some tests.
* | | | | Merge pull request #7225 from rails/eager_loadJosé Valim2012-08-2133-109/+215
|\ \ \ \ \ | | | | | | | | | | | | Improve eager load on Rails
| * | | | | add Rack::Lock for webrickAaron Patterson2012-08-211-0/+9
| | | | | |
| * | | | | Deprecate config.threadsafe!José Valim2012-08-214-22/+20
| | | | | |
| * | | | | Get rid of config.preload_frameworks in favor of config.eager_load_namespacesJosé Valim2012-08-2123-52/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | Make ActiveSupport::Autoload localJosé Valim2012-08-213-30/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | Remove allow_concurrency as a flagJosé Valim2012-08-215-12/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`
| * | | | | Allow users to choose when to eager_load the application or not.José Valim2012-08-219-8/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | Merge pull request #6499 from lazylester/patch-1Carlos Antonio da Silva2012-08-211-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Clarify and correct the description for the --full option of the plugin_new generator. [ci skip]
| * | | | | | Clarify and correct the description for the --full option of the plugin_new ↵lazylester2012-08-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | generator
* | | | | | | Use a model without counter cache to test read-only attributesRafael Mendonça França2012-08-211-9/+10
| |/ / / / / |/| | | | |
* | | | | | Merge pull request #5210 from Pliny/masteriRafael Mendonça França2012-08-218-2/+36
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Fix for #5200
| * | | | | | reset_counters() was crashing when there were multiple belongs_to ↵Dave Desrochers2012-08-218-2/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | associations with the same foreign key. This closes #5200.