Skip to content

Releases: TwilightCoders/active_record-mti

v0.3.0

15 Dec 23:16

Choose a tag to compare

v0.3.0 Pre-release
Pre-release
  • Greatly improved future-proofing injection strategy.
    • No longer overwriting (and maintaining) ActiveRecord Calculation sub-routines.
  • Instead of injecting at build_select, we're injecting at build_arel with one additional new sub-routine (build_mti)
    • build_mti sub-routine detects if an MTI projection is needed based on grouping and selecting from query being built.

v0.0.6

29 Nov 00:39

Choose a tag to compare

  • Improve how ActiveRecord::MTI is injected into Rails

v0.0.5

29 Nov 00:38

Choose a tag to compare

  • Allow SQL calculations (like sum and count) to execute by removing unneeded MTI projections

v0.0.2

29 Nov 00:38

Choose a tag to compare

  • Default value to return when finding MTI class

v0.2.1

29 Nov 00:37

Choose a tag to compare

  • More reliable class discrimination
  • Improved view support

v0.1.1

29 Nov 00:37

Choose a tag to compare

  • Fixes issue where inheritance check is called multiple times.
  • Can handle a (simple) view that references a table that uses MTI

v0.1.0

29 Nov 00:37

Choose a tag to compare

  • PSQL Adapter now responds to version
  • Improved column pulls from DB

v0.0.7

29 Nov 00:36

Choose a tag to compare

  • Specs!
  • Breaking Change: must call uses_mti in models
  • MTI class discrimination happens before STI
  • More reliable projection/unprojection
  • Improved table_name inference