- 16 1月, 2016 13 次提交
-
-
由 Tawan Sierek 提交于
Fix bug (#22811) that occurs when rails server is started in daemon mode and optional path to the `server.pid` file is omitted. Store default path in a constant instead of evaluating it multiple time using `File.expand_path`. The bug in detail: The server startup procedure crashes, since it tries to open a file at `/tmp/pids/server.pid` instead of `<path to project>/tmp/pids/server.pid`. This bug was introduced in 51211a94 when Rack was upgraded from version 1.x to 2.x. Since version 2.x, Rack does not memoize the options hash [1], and as a consequence `Rails::Server#default_options` will be evaluated multiple times. The hash returned by `Rails::Server#default_options` holds the default path to the `server.pid` file. The path is generated with the method `File.expand_path`. However, the return value of this method depends on the current working directory [2], which changes once `Process.daemon` is invoked by `Rack::Server#daemonize_app` and the process is detached from the current shell. Close #22811 [1]https://git.io/vzen2 [2]http://ruby-doc.org/core-2.1.5/File.html#method-c-expand_path
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
This reverts commit d0393fcc, reversing changes made to 3b7ccadf.
-
由 Rafael Mendonça França 提交于
Use ActiveSupport::SafeBuffer when flushing content_for
-
由 Rafael França 提交于
Add `:expression` option support on the schema default
-
由 Rafael França 提交于
test `include?`- fix typo
-
由 Rafael França 提交于
`sql_for_insert` returns values for passing to `exec_insert`
-
由 Rafael França 提交于
remove unnecessary `ENV[]` from `log:clear` example [ci skip]
-
由 yuuji.yaginuma 提交于
-
由 Richard Schneeman 提交于
Revert "Revert "Set environment even when no migration runs""
-
由 Godfrey Chan 提交于
Allow to store .keep file in cache directory
-
由 Jon Moss 提交于
Merge pull request #23071 from khundawg/dave_moore/update-docs-ActionCable__Connection__Identification.class_methods [ci skip] Fix typo in docs
-
由 DAVID MOORE 提交于
Found this small omission while reviewing the ActionCable docs. [Dave Moore]
-
- 15 1月, 2016 17 次提交
-
-
由 Richard Schneeman 提交于
Clean up internal metadata definition
-
由 Sean Griffin 提交于
`last_insert_id_value` and `last_insert_id` are unused anymore
-
由 Ryuta Kamizono 提交于
These methods are private and unused from anywhere.
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
Use `t.index` in `create_table` instead of `add_index` It is slightly more efficient. Revert "Use `key` as primary key in schema." This reverts commit 350ae6cd. `:primary_key` option does nothing if `id: false`. https://github.com/rails/rails/blob/v5.0.0.beta1/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb#L251-L261
-
由 Rafael França 提交于
Improve generated config initializer files
-
由 Rafael França 提交于
Update deprecation_horizon to 5.1 from 5.0 [ci skip]
-
由 schneems 提交于
😳 -
由 Sean Griffin 提交于
Revert "Set environment even when no migration runs"
-
由 Sean Griffin 提交于
-
由 Kasper Timm Hansen 提交于
This reverts commit 224eddfc, reversing changes made to 9d681fc7. When merging the pull request, I misunderstood `has_secure_token` as declaring a model has a token from birth and through the rest of its lifetime. Therefore, supporting conditional creation doesn't make sense. You should never mark a model as having a secure token if there's a time when it shouldn't have it on creation.
-
由 Sean Griffin 提交于
`substitute_at` is no longer used
-
由 Sean Griffin 提交于
The code that set the from clause was removed in bdc51416. I did not give any reason for doing so. My assumption was that I intended to change it to use the clause objects, but forgot. We appeared to not have test coverage for this case. Fixes #22996
-
由 Sean Griffin 提交于
The code was changed to call `where` on a specific class in 813c8c07, but no reasoning was given and I can't see any good reason why we would need to do that. This will ensure that the method is called on whatever class the scope is called on. Fixes #23013
-
由 Richard Schneeman 提交于
Set environment even when no migration runs
-
由 Jon Moss 提交于
update doc for << method of has_many association
-
- 14 1月, 2016 8 次提交
-
-
由 Rafael França 提交于
[ci skip] fix typo in docs
-
由 ankit1910 提交于
-
由 ankit1910 提交于
-
由 Ryuta Kamizono 提交于
-
由 Jon Moss 提交于
Fix typo in docs [ci skip]
-
由 Rebecca Skinner 提交于
-
由 Akira Matsuda 提交于
Converting nbsp(\u{00A0}) to the normal ASCII space(\u{0020}) [ci skip]
-
由 Ryuta Kamizono 提交于
Arel handles substitution for bind parameters by now.
-
- 13 1月, 2016 2 次提交
-
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
The default 'now'::date is CURRENT_DATE.
-