| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
XmlMini define the xml 'datatime', but according to
http://www.w3.org/TR/xmlschema-2/#dateTime could be better
change this to 'dateTime' with upper case letter 'T.
So 'DateTime' and 'Time' are redefined from 'datetime' to 'dateTime'
add the changing to the changelog
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This reverts commit d2901f0fc4270a765717ad572d559dc49a56b3a8, reversing
changes made to 525839fdd8cc34d6d524f204528d5b6f36fe410c.
Conflicts:
activerecord/test/cases/connection_pool_test.rb
Reason: This change broke the build (http://travis-ci.org/#!/rails/rails/builds/1391490)
and we don't have any solution until now. I asked the author to try to
fix it and open a new pull request.
|
|\ \
| | |
| | | |
Support migrating from Hash to HashWithIndifferentAccess for accessing attributes.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In order to make migration from 3.x apps easier, we should try to
convert
Hash instances to HashWithIndifferentAccess, to allow accessing values
with both symbol and a string. This is follow up to changes in 3c0bf043.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Currently, when saving a frozen record, an exception would be thrown
which causes a rollback. However, there is a bug in active record that
"defrost" the record as a side effect:
>> t = Topic.new
=> #<Topic id: nil, ...>
>> t.freeze
=> #<Topic id: nil, ...>
>> t.save
RuntimeError: can't modify a frozen Hash
>> t.frozen?
=> false
>> t.save
=> true
This patch fixes the bug by explictly restoring the frozen state on the
attributes Hash after every rollback.
|
| | |
| | |
| | |
| | | |
These variables were issuing some "not used" warnings.
|
| | |
| | |
| | |
| | | |
Only constantize class_name once.
|
|\ \ \
| | | |
| | | | |
Make connection pool fair with respect to waiting threads.
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
allow the :converter Proc form composed_of to return nil
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This makes it possible to filter invalid input values before they are passed
into the value-object (like empty strings). This behaviour is only relevant
if the :allow_nil options is set to true. Otherwise you will get
the resulting NoMethodError.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The fix commited in e2a070c was returning the `new_target`, as
a try to return whatever user replaced association with. The
problem is, the resulting association target may be ordered
differently. In such case we want to return the target that
will be later used for that association.
|
|\ \ \ \
| | | | |
| | | | | |
Increase numeric-timestamp precision to nanoseconds
|
| | | | | |
|
| | | | | |
|
| |_|_|/
|/| | |
| | | |
| | | | |
Bug #6289
|
| |_|/
|/| | |
|
| | | |
|
|/ / |
|
|\ \
| | |
| | | |
Postgresql doesn't accept limits on binary (bytea) columns.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Don't allow to destroy readonly models
|
| | | | |
|
|/ / / |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
RStankov/relation-from-to-accept-other-relation-objects
Relation#from to accept other Relation objects
|
| | | |
| | | |
| | | |
| | | | |
Record.from("(#{sub_query.to_sql})") -> Record.from(sub_query)
Record.from("(#{sub_query.to_sql}) a") -> Record.from(sub_query, :a)
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
JonRowe/patch_uniq_has_and_belongs_to_many_when_already_loaded
When Active Record has already loaded a unique association `.size` returns the wrong number.
|
| | | | |
| | | | |
| | | | |
| | | | | |
of the uniq array
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Call methods on the correct instance in AR::Schema.define
|
| | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | | |
Now that migrations support instance methods, we should
use the same instance rather than relying on delegation
to a global instance. This allows subclassing AR::Schema.
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
danmcclain/add_inet_and_cidr_types_to_postgresql_adapter
Add support for macaddr, inet, and cidr types to PostgreSQL adapter
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
Allow manual rollbacks in after_save to reset object correctly
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
an alias is provided. Without the alias, the column cannot be found
and properly typecast.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Bring SqlByPassTest to light and fix broken tests
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
for SqlBypass as expected by tests and convert session_id to string before using on queries to get correct quotes on postgresql (avoid casting error).
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Integer limit out of range should be allowed to raise. Closes #6272
|
| |/ / / / / / |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Fixes issue where SQL fragments prevented type casting based on column
|
| |/ / / / / / |
|
| | | | | | | |
|
|/ / / / / / |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Remove unnecessary assertions.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
to the after_seq when using sequencer.
|
|/ / / / / / |
|