Sha256: d254ba8b6bbc651237a8e7ba18fa3437097107fc8c72364a2989126820955302

Contents?: true

Size: 262 Bytes

Versions: 54

Compression:

Stored size: 262 Bytes

Contents

class Post < ActiveRecord::Base
  include SocialStream::Models::Object

  alias_attribute :text, :description
  validates_presence_of :text

  define_index do
    activity_object_index
  end

  def title
    description.truncate(30, :separator =>' ')
  end

end

Version data entries

54 entries across 54 versions & 2 rubygems

Version Path
social_stream-1.1.12 base/app/models/post.rb
social_stream-base-1.1.11 app/models/post.rb
social_stream-1.1.11 base/app/models/post.rb
social_stream-base-1.1.10 app/models/post.rb
social_stream-1.1.10 base/app/models/post.rb
social_stream-base-1.1.9 app/models/post.rb
social_stream-1.1.9 base/app/models/post.rb
social_stream-base-1.1.8 app/models/post.rb
social_stream-1.1.8 base/app/models/post.rb
social_stream-base-1.1.7 app/models/post.rb
social_stream-1.1.7 base/app/models/post.rb
social_stream-base-1.1.6 app/models/post.rb
social_stream-1.1.6 base/app/models/post.rb
social_stream-base-1.1.5 app/models/post.rb
social_stream-1.1.5 base/app/models/post.rb
social_stream-base-1.1.4 app/models/post.rb
social_stream-1.1.4 base/app/models/post.rb
social_stream-1.1.3 base/app/models/post.rb
social_stream-base-1.1.3 app/models/post.rb
social_stream-1.1.2 base/app/models/post.rb