lib/mls/unit.rb in mls-1.4.3 vs lib/mls/unit.rb in mls-1.5.0
- old
+ new
@@ -6,10 +6,10 @@
belongs_to :property
belongs_to :floorplan, :class_name => 'Document'
has_many :listings
- has_many :image_orderings, as: :subject, dependent: :destroy
+ has_many :image_orderings, as: :subject
has_many :photos, through: :image_orderings, source: :image
# has_many :photos, -> { order(:order => :asc) }, :as => :subject, :inverse_of => :subject
has_and_belongs_to_many :uses