module Shiftable::ModSignature::PcxMethods
Public Instance Methods
shift_data!(shift_to:, shift_from:, bang: false)
click to toggle source
This method could be defined for parity, but it is never used. def has_rel
associations[:has_many]
end
# File lib/shiftable/mod_signature.rb, line 100 def shift_data!(shift_to:, shift_from:, bang: false) validate_relationships shifting_rel = ShiftingPolymorphicRelation.new( to: shift_to, from: shift_from, column: { type: polymorphic_type, as: polymorphic_as, id_column: shift_pcx_column }, base: base, wrapper: wrapper, bang: bang ) shifting_rel.shift do before_shift&.call(shifting_rel) end end