Skip to content

Commit

Permalink
cleanup old belongs_to group and person relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
acmetech committed Sep 6, 2016
1 parent ea4c670 commit fa9b760
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions app/models/socializer/activity_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,6 @@ class ActivityObject < ApplicationRecord
# These relationships simplify the Activity.circles_subquery and
# Activity.limited_group_subquery queries. By using these relationships we
# no longer need to use Arel in those methods.
# NOTE: These relationships will no longer be needed if rails provides a
# nice way to joins to a polymorphic relationship
# belongs_to :group,
# -> { ActivityObject.with_activitable_type(type: Group.name) },
# foreign_key: "activitable_id",
# optional: true

# belongs_to :person,
# -> { ActivityObject.with_activitable_type(type: Person.name) },
# foreign_key: "activitable_id",
# optional: true

has_one :self_reference, class_name: self, foreign_key: :id

has_one :group,
Expand Down

0 comments on commit fa9b760

Please sign in to comment.