aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/reflection.rb
Commit message (Expand)AuthorAgeFilesLines
* Ensure reflection_class_for is privateKevin Deisz2018-05-311-24/+27
* Move ActiveStorage reflection logic entirely into ActiveStorageKevin Deisz2018-05-311-44/+2
* Reflection for attachmentsKevin Deisz2018-05-301-17/+60
* Exception wording changeCory Becker2018-05-211-1/+1
* Extract all `base_class.name` as `polymorphic_name`Ryuta Kamizono2018-03-041-1/+1
* Partly revert 91b30a001b79096b60d9424a4664a417dce0b767Ryuta Kamizono2018-02-271-1/+7
* Merge pull request #31895 from kamipo/do_not_attempt_to_find_inverse_of_polym...Ryuta Kamizono2018-02-261-10/+7
|\
| * Do not attempt to automatically find the inverse of a polymorphic `belongs_to...Ryuta Kamizono2018-02-191-10/+4
| * Make `reflection.klass` raise if `polymorphic?` not to be misusedRyuta Kamizono2018-02-191-1/+4
* | Association creation and finding should work consistently (#32048)Ryuta Kamizono2018-02-261-1/+1
|/
* Rails 6 requires Ruby 2.3+Jeremy Daer2018-02-171-4/+2
* Avoid passing unnecessary arguments to relationDaniel Colson2018-01-241-1/+5
* Remove the deprecated `:conditions` option in `INVALID_AUTOMATIC_INVERSE_OPTI...Ryuta Kamizono2018-01-111-1/+1
* Fix `stale_state` for nested `has_many :through` associationsRyuta Kamizono2018-01-101-8/+0
* Merge pull request #16314 from zoltankiss/allow-nested-has-many-associations-...Ryuta Kamizono2018-01-101-0/+8
|\
| * Fix nested `has many :through` associations on unpersisted instancesZoltan Kiss2015-03-261-0/+4
* | Fix newly added reflection order when redefining associationRyuta Kamizono2018-01-041-1/+2
* | Remove `association_primary_key_type` from `AssociationReflection` and `Throu...Ryuta Kamizono2018-01-011-8/+0
* | Refactor delegating `join_primary_key` instead of `join_keys` and `associatio...Ryuta Kamizono2018-01-011-2/+2
* | `source_type_scope` should respect correct table aliasRyuta Kamizono2017-10-301-7/+3
* | `PolymorphicReflection#scopes` is no longer used since a5651eb5Ryuta Kamizono2017-10-301-5/+0
* | delegate scope forpavel2017-10-271-1/+1
* | Remove deprecated methd `#scope_chain`Rafael Mendonça França2017-10-231-6/+0
* | Remove deprecated support to passing a class to `:class_name` on associationsRafael Mendonça França2017-10-231-8/+1
* | Don't generate `foreign_type` if `options[:polymorphic]` is not givenRyuta Kamizono2017-09-271-1/+1
* | PERF: Restore memoization when preloading associations.Guo Xiang Tan2017-09-251-6/+5
* | The name of the key on the associated record is abstracted as `reflection.joi...Ryuta Kamizono2017-09-181-9/+9
* | Remove duplicated `klass` method in `AssociationReflection`Ryuta Kamizono2017-09-081-16/+11
* | Remove unused `primary_key_type` and `quoted_table_name` in `Reflection`Ryuta Kamizono2017-09-081-8/+0
* | Don't pass `table` to `last_chain_scope` and `next_chain_scope`Ryuta Kamizono2017-09-071-2/+2
* | `RuntimeReflection` is not a subclass of `PolymorphicReflection`Ryuta Kamizono2017-09-071-26/+6
* | `has_many :through` with unscope should affect to through scopeRyuta Kamizono2017-09-071-2/+0
* | Scope in associations should treat nil as `all`Ryuta Kamizono2017-09-041-3/+3
* | `@previous_reflection.options[:source_type]` in `PolymorphicReflection` is al...Ryuta Kamizono2017-08-281-10/+2
* | Remove unused `RuntimeReflection#alias_candidate`Ryuta Kamizono2017-08-281-4/+0
* | Automatically guess the inverse associations for STIyui-knk2017-08-221-1/+1
* | Through scope should not be affected by scopingRyuta Kamizono2017-08-151-7/+2
* | Merge pull request #30208 from kamipo/extract_primary_key_to_abstract_reflectionRafael França2017-08-141-8/+4
|\ \
| * | Extract `primary_key` to `AbstractReflection`Ryuta Kamizono2017-08-121-8/+4
* | | Merge pull request #27609 from kamipo/fix_association_primary_keyRafael França2017-08-141-0/+4
|\ \ \
| * | | Fix `reflection.association_primary_key` for `has_many` associationsRyuta Kamizono2017-08-131-0/+4
* | | | Merge pull request #30231 from kamipo/remove_unused_source_type_infoRafael França2017-08-141-10/+7
|\ \ \ \
| * | | | Remove unused `source_type_info` in `RuntimeReflection`Ryuta Kamizono2017-08-131-10/+7
| |/ / /
* / / / Remove duplicated `join_id_for`Ryuta Kamizono2017-08-131-10/+2
|/ / /
* / / Remove duplicated `table_name`Ryuta Kamizono2017-08-121-8/+0
|/ /
* | Changed join_fk private method to join_foreign_key public methodchopraanmol12017-08-091-9/+9
* | Use `Concurrent::Map` than `Mutex` and `Mutex_m` for statement cachesRyuta Kamizono2017-08-041-6/+3
* | Passing `klass` to `StatementCache.new`Ryuta Kamizono2017-08-041-2/+2
* | Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
* | Fix unscoping `default_scope` in STI associationsRyuta Kamizono2017-07-191-2/+4