Sha256: 3e4bd30237723b66c1c1081aaa40aaf1fa3dd5cbb03bcbb65671a9f0ea1a1c9a

Contents?: true

Size: 457 Bytes

Versions: 269

Compression:

Stored size: 457 Bytes

Contents

class ActivityObjectActivity < ActiveRecord::Base
  belongs_to :activity, :dependent => :destroy
  belongs_to :activity_object

  before_create :default_object_type

  private
  
  # Default objects are direct objects. http://activitystrea.ms/head/atom-activity.html#activity.object
  # Other type of objects are targets.  http://activitystrea.ms/head/atom-activity.html#activity.target
  def default_object_type
    self.object_type ||= "object"
  end
end

Version data entries

269 entries across 269 versions & 4 rubygems

Version Path
social_stream-2.2.2 base/app/models/activity_object_activity.rb
social_stream-base-2.2.2 app/models/activity_object_activity.rb
social_stream-2.2.1 base/app/models/activity_object_activity.rb
social_stream-base-2.2.1 app/models/activity_object_activity.rb
social_stream-2.2.0 base/app/models/activity_object_activity.rb
social_stream-base-2.2.0 app/models/activity_object_activity.rb
social_stream-2.1.1 base/app/models/activity_object_activity.rb
social_stream-1.1.12 base/app/models/activity_object_activity.rb
social_stream-base-1.1.11 app/models/activity_object_activity.rb
social_stream-2.1.0 base/app/models/activity_object_activity.rb
social_stream-base-2.1.0 app/models/activity_object_activity.rb
social_stream-2.0.4 base/app/models/activity_object_activity.rb
social_stream-base-2.0.4 app/models/activity_object_activity.rb
social_stream-2.0.3 base/app/models/activity_object_activity.rb
social_stream-base-2.0.3 app/models/activity_object_activity.rb
social_stream-1.1.11 base/app/models/activity_object_activity.rb
social_stream-base-1.1.10 app/models/activity_object_activity.rb
social_stream-1.1.10 base/app/models/activity_object_activity.rb
social_stream-base-1.1.9 app/models/activity_object_activity.rb
social_stream-1.1.9 base/app/models/activity_object_activity.rb