- 10 6月, 2014 9 次提交
-
-
由 Sean Griffin 提交于
-
由 Rafael Mendonça França 提交于
Rename `type_cast` to `type_cast_from_database`
-
由 Sean Griffin 提交于
In some cases there is a difference between the two, we should always be doing one or the other. For convenience, `type_cast` is still a private method on type, so new types that do not need different behavior don't need to implement two methods, but it has been moved to private so it cannot be used accidentally.
-
由 Rafael Mendonça França 提交于
Use an actual identity type in AR::Result#identity_type
-
由 Sean Griffin 提交于
We should be able to rely on this object implenting the full type interface.
-
由 Rafael Mendonça França 提交于
Remove workaround for non-lazy serialize in tests
-
由 Rafael Mendonça França 提交于
Make `_before_type_cast` actually be before type cast
-
由 Rafael Mendonça França 提交于
Integration tests are inside protected_attributes test suite. Fixes #15496 Fixes rails/protected_attributes#35
-
由 Sean Griffin 提交于
- The following is now true for all types, all the time - `model.attribute_before_type_cast == given_value` - `model.attribute == model.save_and_reload.attribute` - `model.attribute == model.dup.attribute` - `model.attribute == YAML.load(YAML.dump(model)).attribute` - Removes the remaining types implementing `type_cast_for_write` - Simplifies the implementation of time zone aware attributes - Brings tz aware attributes closer to being implemented as an attribute decorator - Adds additional point of control for custom types
-
- 09 6月, 2014 4 次提交
-
-
由 Rafael Mendonça França 提交于
Remove a long gone :order option from has_one's valid_options
-
由 thedarkone 提交于
-
由 Sean Griffin 提交于
`serialize` is now lazy, so the workaround is no longer needed.
-
由 Yves Senn 提交于
-
- 08 6月, 2014 23 次提交
-
-
由 Rafael Mendonça França 提交于
Mail 2.6.1 silences excessive warnings; remove Gemfile hack
-
由 Benjamin Fleischer 提交于
Completes https://github.com/rails/rails/pull/15493 Revert "For our build, stick with mail 2.5.x for now" This reverts commit b8f586a0.
-
由 Richard Schneeman 提交于
Update migrations.md
-
由 Kalman Hazins 提交于
default column type modifier
-
由 Matthew Draper 提交于
Not sure what's causing them suddenly, but it seems unlikely there's much we can do about it. For the small amount of coverage this particular job gains us, it's hurting us more, by making CI failures unremarkable.
-
由 Yves Senn 提交于
Restore test deliveries for ActionMailer.
-
由 Matthew Draper 提交于
Handle client disconnect during live streaming
-
由 Matthew Draper 提交于
.. even when the producer is blocked for a write.
-
由 Rafael Mendonça França 提交于
Add Additional Test Cases for the constantize
-
由 Aditya Kapoor 提交于
-
由 Rafael Mendonça França 提交于
fix test cases after #15558 merge to master.
-
由 Kuldeep Aggarwal 提交于
-
由 Rafael Mendonça França 提交于
Rename `property` to `attribute` Conflicts: activerecord/lib/active_record/attribute_methods/serialization.rb activerecord/lib/active_record/base.rb
-
由 Rafael Mendonça França 提交于
Don't query the database schema when calling `serialize`
-
由 Rafael Mendonça França 提交于
Ensure time zones don't change after round trip with array columns
-
由 Rafael Mendonça França 提交于
Do not type cast twice on attribute assignment
-
由 Sean Griffin 提交于
The definition of `write_attribute` in dirty checking ultimately leads to the columns calling `type_cast` on the value to perform the comparison. However, this is a potentially expensive computation that we cache when it occurs in `read_attribute`. The only case that we need the non-type-cast form is for numeric, so we pass that through as well (something I'm looking to remove in the future). This also reduces the number of places that manually access various stages in an attribute's type casting lifecycle, which will aid in one of the larger refactorings that I'm working on.
-
由 Rafael Mendonça França 提交于
Correct Example output in Rails guides [ci skip]
-
由 Rafael Mendonça França 提交于
Remove dead branch when restoring ID within a transaction Conflicts: activerecord/lib/active_record/transactions.rb
-
由 Rafael Mendonça França 提交于
Move conditionals about freezing closer to the definition of `freeze`
-
由 Sean Griffin 提交于
Reduces the number of places that care about the internals of how we store and type cast attributes. We do not need to go through the dup/freeze dance, as you couldn't have saved a frozen new record anyway, and that is the only time we would end up modifying the frozen hash.
-
由 Sean Griffin 提交于
There is no way to have an instance of an Active Record model where `has_attribute?(self.class.primary_key)` returns false. The record is always initialized in such a way that `@raw_attributes` will have an id key with nil for the value.
-
由 Rafael Mendonça França 提交于
Remove duplicated `@raw_attributes.keys`
-
- 07 6月, 2014 4 次提交
-
-
由 Sean Griffin 提交于
Reduces the number of things outside of attribute methods that cares about the details of how we store and type cast attributes
-
由 Sean Griffin 提交于
The times would be equivalent, even if they were in different time zones. E.g. 12:00 UTC == 5:00 PDT
-
由 Matthew Draper 提交于
Specify a time zone when testing TZ aware attributes
-
由 Sean Griffin 提交于
Millisecond inequality causes failures on Travis
-