Class: ActivityObjectProperty
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ActivityObjectProperty
- Defined in:
- app/models/activity_object_property.rb
Instance Method Summary collapse
Instance Method Details
#siblings ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'app/models/activity_object_property.rb', line 14 def siblings self. class. includes(:property). where(activity_object_id: activity_object_id). where("property_id != ?", property_id). merge(ActivityObject.where(object_type: property.object_type)) end |