Module: Shiftable::ModSignature::CxMethods
- Defined in:
- lib/shiftable/mod_signature.rb
Instance Method Summary collapse
Instance Method Details
#has_rel ⇒ Object
74 75 76 |
# File 'lib/shiftable/mod_signature.rb', line 74 def has_rel associations[:has_many] end |
#shift_data!(shift_to:, shift_from:, bang: false) ⇒ Object
78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/shiftable/mod_signature.rb', line 78 def shift_data!(shift_to:, shift_from:, bang: false) validate_relationships shifting_rel = ShiftingRelation.new( to: shift_to, from: shift_from, column: shift_column, base: base, wrapper: wrapper, bang: bang ) shifting_rel.shift do before_shift&.call(shifting_rel) end end |