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-base-1.1.8 app/models/activity_object_activity.rb
social_stream-1.1.8 base/app/models/activity_object_activity.rb
social_stream-base-1.1.7 app/models/activity_object_activity.rb
social_stream-2.0.2 base/app/models/activity_object_activity.rb
social_stream-base-2.0.2 app/models/activity_object_activity.rb
social_stream-2.0.1 base/app/models/activity_object_activity.rb
social_stream-base-2.0.1 app/models/activity_object_activity.rb
social_stream-2.0.0 base/app/models/activity_object_activity.rb
social_stream-base-2.0.0 app/models/activity_object_activity.rb
social_stream-2.0.0.beta3 base/app/models/activity_object_activity.rb
social_stream-base-2.0.0.beta3 app/models/activity_object_activity.rb
social_stream-2.0.0.beta2 base/app/models/activity_object_activity.rb
social_stream-base-2.0.0.beta2 app/models/activity_object_activity.rb
social_stream-2.0.0.beta1 base/app/models/activity_object_activity.rb
social_stream-base-2.0.0.beta1 app/models/activity_object_activity.rb
social_stream-1.1.7 base/app/models/activity_object_activity.rb
social_stream-base-1.1.6 app/models/activity_object_activity.rb
social_stream-1.1.6 base/app/models/activity_object_activity.rb
social_stream-base-1.1.5 app/models/activity_object_activity.rb
social_stream-1.1.5 base/app/models/activity_object_activity.rb