module SocialStream
  module Events
    module Models
      module Actor
        extend ActiveSupport::Concern

        included do
          has_many :rooms
        end

        def events
          Event.authored_by(self)
        end
      end
    end
  end
end

module SocialStream
  module Events
    module Models
      module Actor
        extend ActiveSupport::Concern

        included do
          has_many :rooms,
                   dependent: :destroy
        end

        def events
          Event.authored_by(self)
        end
      end
    end
  end
end

Remove rooms along with their owners
Remove rooms along with their owners

Fixes #440
