| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| |
| | |
'chancancode/fix_instance_method_already_implemented'
Conflicts:
activerecord/CHANGELOG.md
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
conflicting private method defined on its ancestors.
The problem is that `method_defined_within?(name, klass, superklass)`
only works correclty when `klass` and `superklass` are both `Class`es.
If both `klass` and `superklass` are both `Class`es, they share the
same inheritance chain, so if a method is defined on `klass` but not
`superklass`, this method must be introduced at some point between
`klass` and `superklass`.
This does not work when `superklass` is a `Module`. A `Module`'s
inheritance chain contains just itself. So if a method is defined on
`klass` but not on `superklass`, the method could still be defined
somewhere upstream, e.g. in `Object`.
This fix works by avoiding calling `method_defined_within?` with a
module while still fufilling the requirement (checking that the
method is defined withing `superclass` but not is not a generated
attribute method).
4d8ee288 is likely an attempted partial fix for this problem. This
unrolls that fix and properly check the `superclass` as intended.
Fixes #11569.
|
|\ \
| | |
| | | |
travis s/2.1.0/2.1.1
|
|/ / |
|
|\ \
| | |
| | |
| | |
| | | |
schneems/schneems/fix-ar-wtf-why-is-there-no-environment
Handle missing environment from non empty config
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
If using a `DATABASE_URL` and a `database.yml`. The connection information in `DATABASE_URL` should be merged into whatever environment we are in. As released in 4.1.0rc1 if someone has a database.yml but is missing a key like production:
```yml
development:
host: localhost
```
Then the check for blank config will return false so the information from the `DATABASE_URL` will not be used when attempting to connect to the `production` database and the connection will incorrectly fail.
This commit fixes this problem and adds a test for the behavior.
In addition the ability to specify a connection url in a `database.yml` like this:
```
production: postgres://localhost/foo
```
Was introduced in 4.1.0rc1 though should not be used, instead using a url sub key
```
production:
url: postgres://localhost/foo
```
This url sub key was also introduced in 4.1.0rc1 though the `production: postgres://localhost/foo` was not removed. As a result we should not test this behavior.
|
|\ \ \
| | | |
| | | | |
Skip test_migrate_revert_add_index_with_name for some databases
|
| | | |
| | | |
| | | |
| | | | |
do not allow to create duplicate indexes on the same columns
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We noticed the rails gem increased in size between the beta and rc
versions, and the reason is that some guides images were updated but not
properly optimized, and one image changed from png to jpg, way bigger.
Converting the jpg image back to png, and using ImageOptim to optimize
all the images for web view, improves the situation [ci skip].
---
In current master/4-1-stable:
508K guides/assets/images/getting_started/
In v4.1.0.beta1:
268K guides/assets/images/getting_started/
In 4-0-stable
328K guides/assets/images/getting_started/
After the patch:
260K guides/assets/images/getting_started/
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Add missing parantheses in index_exists?
|
| | | | |
|
|/ / /
| | |
| | |
| | | |
Remove 4-1 related entries from master [ci skip]
|
| | |
| | |
| | |
| | | |
See 449039a86d802871b707dfb51ac1ed96d53526f9 for the original commit.
|
|\ \ \
| | | |
| | | | |
Sungularize ActionController::UnpermittedParameters error in case when only 1 parameter is unpermitted.
|
| | | |
| | | |
| | | |
| | | | |
when only 1 parameter is unpermitted.
|
|\ \ \ \
| | | | |
| | | | | |
Standardized punctuation.
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
[skip ci] Fixing typo in documentation: actionview/lib/action_view/helpers/url_helper.rb
|
|/ / / / |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This is a follow up to #14170. While backporting I recognized
that this call is not needed at all.
|
|\ \ \ \
| | | | |
| | | | | |
there could be more than 10 nested records
|
|/ / / / |
|
| | | |
| | | |
| | | |
| | | | |
good, but the closer relationship to #presence over #present is ultimately worth it
|
| | | | |
|
|/ / / |
|
| | |
| | |
| | |
| | |
| | |
| | | |
This is a follow up to #13515. It includes the name given and
the singularized version in the warning message. This will aide the user
to see wether the detected singular was right or not.
|
|\ \ \
| | | |
| | | | |
coerce strings when reading attributes
|
| | |/
| |/| |
|
|\ \ \
| | | |
| | | | |
Extract local cache middleware
|
| |/ /
| | |
| | |
| | |
| | | |
Extract LocalCache Middleware, so it can requires rack dependencies,
without adding rack dependencies to `AS::Cache::Strategy::LocalCache`.
|
| | | |
|
|/ / |
|
|\ \
| | |
| | | |
Dynamically define PostgreSQL Range OIDs
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The Ruby Range object does not support excluding beginnings.
We currently support excluding beginnings for some subtypes using
manually by incrementing them (now using the `#succ` method).
This is approach is flawed as it's not equal to an excluding beginning.
This commit deprecates the current support for excluding beginnings.
It also raises an `ArgumentError` for subtypes that do not implement the `succ`
method.
This is a temporary solution to get rid of the broken state. We might still
add complete support for excluding beginnings afterwards. (Probably with a
new `PGRange` object, which acts like a `Range` but has excluding beginnings.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This gets AR working with custom defined range types. It also
removes the need for subtype specific branches in `OID::Range`.
This expands the interface of all `OID` types with the `infinity` method.
It's responsible to provide a value for positive and negative infinity.
|
|/ / |
|
| |
| |
| |
| | |
See #13875
|
|\ \
| | |
| | | |
Added warning when user tried to create model with pluralize name.
|
| | |
| | |
| | |
| | |
| | | |
1. Generate model with correct_name.
2. It will help new users to avoid mistakes when tried to create model with wrong name.
|
|\ \ \
| | | |
| | | | |
Fixed typo in comment about MAX_ID.
|
| | | | |
|
| |_|/
|/| |
| | |
| | | |
or no conn available from the pool
|
|\ \ \
| | | |
| | | | |
Prevent foreign_key_for? from evaluating all attributes
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit e0a521cfcd13e4d1f0ae8ab96004289e1c020f71.
Conflicts:
railties/CHANGELOG.md
We expect loggers to quack like stdlib logger. If log4r needs different
level= assignment, using a Logger-quacking wrapper is the way to do it.
Fixes #14114.
|
| |/
|/|
| |
| |
| |
| | |
GitHub is now able to notify tag creation, I have configured the webhook
for the docs server to receive that event. Therefore, we no longer need
to trigger docs generation manually when releasing.
|
|\ \
| | |
| | | |
update guides to new version of rails 3.2.x, i.e. 3.2.17 [skip ci]
|
|/ / |
|
| | |
|