| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This reverts commit faeb33dc036e4f707491c91a23ee3e990573141b.
Reason: Code changes can't be done on docrails
|
| |
|
| |
|
|\ |
|
| | |
|
| |\
| | |
| | | |
Added quotes when defining the precision for the `decimal` fields
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
before:
```bash
$ rails generate migration AddDetailsToProducts price:decimal{5,2} supplier:references{polymorphic}
```
after:
```bash
$ rails generate migration AddDetailsToProducts 'price:decimal{5,2}' supplier:references{polymorphic}
```
|
| |
| |
| | |
Change the plural of Deer word in the naming conventions
|
| |
| |
| | |
There's a div that is generated in rails for a default search form and is not includen in the example.
|
| |
| |
| |
| |
| |
| | |
The documentation in this section is referring to a profile,
so the resource that's created should probably also be a
profile of some sort.
|
| |
| |
| |
| |
| |
| | |
The docs refference a blacklist, but really what's being described
is a whitelist. Anything that matches the constraint gets through to
the path.
|
| | |
|
| | |
|
| |
| |
| |
| | |
The right command for doing that is Client.exists?id:[1,2,3]
Exists does not work like find method, in find method you can do Person.find(1, 2, 6) or Person.find([7, 17]) but not Person.exists?(1,2,3) or Person.exists?([1,2,3])
|
| |
| |
| | |
In the example of join models, there are five models but in the explanation only consider Category, Post, Comment and Guest.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
remove outdated docs
|
|/ / |
|
|\ \
| | |
| | | |
Fix FileStore#cleanup to no longer rely on missing each_key method
|
| | | |
|
|\ \ \
| | | |
| | | | |
Enabled quirks mode on JSON.parse, fixes broken test in af9caae
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | | |
It turns out that ActionPack depends on the decoder to parse JSON
"fragments" (e.g. '"a string"', '1', 'null', etc), so we need to
enable quirks mode on JSON.parse. Also added coverage on the decoder
side to prevent regression.
|
| | |
| | |
| | |
| | | |
[ci skip]
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | | |
jetthoughts/join_strings_instead_of_contactination
Cleanup: replace String concatenation by joining for excerpt helper
|
| | | |
| | | |
| | | |
| | | |
| | | | |
* replaced String concatenation by joining
* separator has default value to '', even it is nil
|
|\ \ \ \
| | | | |
| | | | | |
Update 4_0_release_notes.md
|
|/ / / /
| | | |
| | | | |
Active support --> Deprecations Code highlighted.
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Remove unused raw email fixtures
|
|/ / / /
| | | |
| | | |
| | | | |
The tests that used the raw_email_* fixtures were removed in d500ad3
|
|\ \ \ \
| | | | |
| | | | | |
Replace JSON.load with JSON.parse
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Since we are dealing with untrusted user input, we should not be
using JSON.load. According to the docs[1]:
BEWARE: This method is meant to serialise data from trusted user
input, like from your own database server or clients under your
control, it could be dangerous to allow untrusted users to pass
JSON sources into it. The default options for the parser can be
changed via the ::load_default_options method.
[1] http://www.ruby-doc.org/stdlib-2.0/libdoc/json/rdoc/JSON.html#method-i-load
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
sense. Let's load the object to ensure it's an array and count the
array.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
At the point we want to add the reflection we already know the
reflection is of the AggregateReflection type so we can call a specific
method
|
| | | | |
| | | | |
| | | | |
| | | | | |
Oops, I should had run the tests
|
| | | | |
| | | | |
| | | | |
| | | | | |
This is not valid anymore after 08477a651648ba4417ded128aa37b9ae0dcbc9ce
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When the adapter is with prepared statement disabled and the binds array
is not empty the connection adapter will try to set the binds values and
will fail. Now we are checking if the adapter has the prepared statement
disabled.
Fixes #12023
|
|\ \ \ \
| | | | |
| | | | | |
Perf: avoid dupes add fallback logic for coders
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Reduce Duration#inspect to a single series of transformations
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* eliminates need for temp Hash
Also added a couple of examples to DurationTest to specify:
* duration can be defined with units out of order e.g.
1.month + 1.year + 1.second + 1.day
* equality with a Fixnum works regardless of which operand is on which
side of the operator
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Avoid empty transaction from setting has_one association on new record.
Conflicts:
activerecord/CHANGELOG.md
|
| | | | | | | |
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Reduce allocations when extracting AR models
|