Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Bookable < ActiveRecord::Base
- attr_setter :properties
- acts_as_line
- def properties
- @properties ||= []
- end
- end
- @bookables.each do |bookable|
- @properties.each {|property|
- bookable.properties << property unless property.bookings.touching(bookable).any?
- }
- end
Add Comment
Please, Sign In to add comment