- 11 6月, 2014 1 次提交
-
-
由 Akshay Vishnoi 提交于
-
- 10 6月, 2014 36 次提交
-
-
由 Rafael Mendonça França 提交于
Fix warnings in tests
-
由 Sean Griffin 提交于
``` activerecord/test/cases/adapters/postgresql/range_test.rb:159: warning: (...) interpreted as grouped expression activerecord/test/cases/finder_test.rb:38: warning: shadowing outer local variable - e activerecord/test/cases/finder_test.rb:43: warning: shadowing outer local variable - e ```
-
由 Rafael Mendonça França 提交于
Keep the types of virtual columns after yaml serialization
-
由 Rafael Mendonça França 提交于
remove depricated Validatior#setup
-
由 Sean Griffin 提交于
On MySQL and PostgreSQL, the adapter does not type cast virtual columns for us.
-
由 Rafael Mendonça França 提交于
Fix cache_digest rake tasks
-
由 Rafael Mendonça França 提交于
Inline PG array type casting helper
-
由 Sean Griffin 提交于
-
由 Jiri Pospisil 提交于
Bring cache_digests:* rake tasks up-to-date with the API changes introduced in 637bb726
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
This is a follow up to #15602 which rendered the guides in a weird state: > You can also specify some options just after the field type between curly braces. You can use the following modifiers: > `null` Allows or disallows `NULL` values in the column. > NOTE: `null` and `default` cannot be specified via command line. The modifiers are now moved into a separate section. The generator simply referes to that section. Related to #15583. /cc @JuanitoFatas
-
由 Xavier Noria 提交于
[ci skip] Rename: Rails Database Migration to Active Record Migration.
-
由 Juanito Fatas 提交于
This will need to setup permanent redirect for the old guide.
-
由 Kuldeep Aggarwal 提交于
-
由 Yves Senn 提交于
ActiveRecord::FinderMethods.find doesn't pass proc parameter to array Manual merge of #15584. Closes #15584.
-
由 James Yang 提交于
-
由 Yves Senn 提交于
[ci skip] Add note about type modifiers that cannot be specified in command line.
-
由 Juanito Fatas 提交于
-
由 Rafael Mendonça França 提交于
Use HasAndBelongsToMany instead of HABTM
-
由 Arthur Neves 提交于
-
由 Rafael Mendonça França 提交于
reuse available collection? check instead of macro
-
由 eileencodes 提交于
Reflection has an available method that is used to check if the reflection is a collection. Any :has_many macro is considered a collection and `collection?` should be used instead of `macro == :has_many`.
-
由 Rafael Mendonça França 提交于
add has_one? method and reuse instead of checking macro
-
由 Aaron Patterson 提交于
Abstract away use of HABTM macro
-
由 eileencodes 提交于
By having the `:has_and_belongs_to_many` macro in the `@collection` we are punishing `:has_many` associations because it has to allocate the array and check the macro. @collection is returned to `macro == :has_many` and a new reflection class `HABTMReflection` is created to handle this case instead.
-
由 eileencodes 提交于
Instead of checking for `macro == :has_one` throughout the codebase we can create a `has_one?` method to match the `belongs_to?`, `polymorphic?` and other methods.
-
由 Rafael Mendonça França 提交于
Before HashWithIndifferentAccess were doing deep_dup of the inner hashes when Hash doesn't do. Now both are behaving in the same way.
-
由 Rafael Mendonça França 提交于
This reverts commit dd3ea171 and add a regression test. Fixes #15418
-
由 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 3 次提交
-
-
由 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.
-