lib/mls/space.rb in mls-1.4.3 vs lib/mls/space.rb in mls-1.5.0
- old
+ new
@@ -1,5 +1,7 @@
class Space < MLS::Model
- belongs_to :coworking_space
+ belongs_to :coworking_space
+ has_many :image_orderings, as: :subject
+ has_many :photos, through: :image_orderings, source: :image
end