- 21 10月, 2015 26 次提交
-
-
由 Gourav Tiwari 提交于
-
由 Sean Griffin 提交于
[Rails Guides] clarify `belongs_to_required_by_default` option [ci skip]
-
由 Sean Griffin 提交于
-
由 Vladimir Rybas 提交于
Original: * `config.active_record.belongs_to_required_by_default` is a boolean value and controls whether `belongs_to` association is required by default. Modified version: * `config.active_record.belongs_to_required_by_default` is a boolean value and controls whether validation error is triggered by default if `belongs_to` association is not present or not valid.
-
由 Sean Griffin 提交于
activerecord guide: clarified roles of valid method and errors object [ci skip]
-
由 Sean Griffin 提交于
Round some numbers more humanely
-
由 Sean Griffin 提交于
-
由 Sean Griffin 提交于
Add missed available transformations to Migration Doc [ci skip]
-
由 Sean Griffin 提交于
Fix find_by with association subquery issue
-
由 Sean Griffin 提交于
ActiveSupport: Fixing issue when delegating to methods named "block", "args", or "arg"
-
由 Sean Griffin 提交于
I messed up the merge conflict, and accidentally removed a schema query that needed to be ignored.
-
由 Sean Griffin 提交于
Qualify column names in calculation
-
由 Soutaro Matsumoto 提交于
Column names inserted via `group` have to be qualified with table name.
-
由 Sean Griffin 提交于
Match table names exactly on MySQL
-
由 Sean Griffin 提交于
-
由 Sean Griffin 提交于
I've been writing too much Rust. My mind is still in the mode of things being auto-namespaced based on the file...
-
由 Sean Griffin 提交于
Fix precision on cache_key
-
由 Sean Griffin 提交于
Prior to this commit, Rails makes no differentiation between whether a query uses bind parameters, and whether or not we cache that query as a prepared statement. This leads to the cache populating extremely fast in some cases, with the statements never being reused. In particular, the two problematic cases are `where(foo: [1, 2, 3])` and `where("foo = ?", 1)`. In both cases we'll end up quoting the values rather than using a bind param, causing a cache entry for every value ever used in that query. It was noted that we can probably eventually change `where("foo = ?", 1)` to use a bind param, which would resolve that case. Additionally, on PG we can change our generated query to be `WHERE foo = ANY($1)`, and pass an array for the bind param. I hope to accomplish both in the future. For SQLite and MySQL, we still end up preparing the statements anyway, we just don't cache it. The statement will be cleaned up after it is executed. On postgres, we skip the prepare step entirely, as an API is provided to execute with bind params without preparing the statement. I'm not 100% happy on the way this ended up being structured. I was hoping to use a decorator on the visitor, rather than mixing a module into the object, but the way Arel has it's visitor pattern set up makes it very difficult to extend without inheritance. I'd like to remove the duplication from the various places that are extending it, but that'll require a larger restructuring of that initialization logic. I'm going to take another look at the structure of it soon. This changes the signature of one of the adapter's internals, and will require downstream changes from third party adapters. I'm not too worried about this, as worst case they can simply add the parameter and always ignore it, and just keep their previous behavior. Fixes #21992.
-
由 Sean Griffin 提交于
Add stored procedure test in mysql2
-
由 Sean Griffin 提交于
Fix to correctly schema dump the `tinyblob`
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
Reorder application of has_many association constraints.
-
由 kal 提交于
-
由 Rafael Mendonça França 提交于
nodoc for active support protected method [CI skip]
-
- 20 10月, 2015 9 次提交
-
-
由 Yves Senn 提交于
Delete needless `require 'active_support/deprecation'`
-
由 Yves Senn 提交于
[ci skip] Replace "destroy` method" with `destroy` action`
-
由 yui-knk 提交于
Sure this is `destroy` method of PhotosController, but in this chapter these methods which mapped by the router are called "action". For example: ```ruby get '/patients/:id', to: 'patients#show' ``` is described to dispatch "controller's `show` action".
-
由 yui-knk 提交于
When `require 'active_support/rails'`, 'active_support/deprecation' is automatically loaded.
-
由 Sean Griffin 提交于
Fix #21977: Removes memoization of helpers in Rails console
-
由 Sean Griffin 提交于
Green version of moving the handling of supported arguments to `where`
-
由 Sean Griffin 提交于
Added context for running engine:migrations:install task. [ci skip]
-
由 Simon H 提交于
-
由 Claudio B. 提交于
Remove outdated documentation regarding a bundled version of TZInfo
-
- 19 10月, 2015 4 次提交
-
-
由 Santiago Pastorino 提交于
Show helpful messages on invalid param. encodings
-
由 Agis Anastasopoulos 提交于
Prior to this change, given a route: # config/routes.rb get ':a' => "foo#bar" If one pointed to http://example.com/%BE (param `a` has invalid encoding), a `BadRequest` would be raised with the following non-informative message: ActionController::BadRequest From now on the message displayed is: Invalid parameter encoding: hi => "\xBE" Fixes #21923.
-
由 jbranchaud 提交于
With `unscope!` called last, it undoes `where` constraints of the same value when the `where` is chained after the `unscope`. This is what a `rewhere` does. This is undesirable behavior. The included tests demonstrate both the `unscope(...).where(...)` behavior as well as the direct use of `rewhere(...)`. This is in reference to #21955.
-
由 Phil Ross 提交于
The bundled version of TZInfo referred to was removed from Active Support in version 3.0.
-
- 18 10月, 2015 1 次提交
-
-
由 Arthur Nogueira Neves 提交于
remove useless method
-