Sha256: de897b5c11fa5495b1da6327290dd38bb3148a594d217545e8a614797bf13eb7

Contents?: true

Size: 298 Bytes

Versions: 15

Compression:

Stored size: 298 Bytes

Contents

class ActivityVerb < ActiveRecord::Base
  # Activity Strems verbs
  Available = %w( post update like )

  validates_uniqueness_of :name

  has_many :activities

  scope :verb_name, lambda{ |n|
    where(:name => n)
  }

  class << self
    def [] name
      verb_name(name).first
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
social_stream-0.2.3 app/models/activity_verb.rb
social_stream-0.2.2 app/models/activity_verb.rb
social_stream-0.2.1 app/models/activity_verb.rb
social_stream-0.2.0 app/models/activity_verb.rb
social_stream-0.1.7 app/models/activity_verb.rb
social_stream-0.1.6 app/models/activity_verb.rb
social_stream-0.1.5 app/models/activity_verb.rb
social_stream-0.1.4 app/models/activity_verb.rb
social_stream-0.1.3 app/models/activity_verb.rb
social_stream-0.1.2 app/models/activity_verb.rb
social_stream-0.1.1 app/models/activity_verb.rb
social_stream-0.1.0 app/models/activity_verb.rb
social_stream-0.0.5 app/models/activity_verb.rb
social_stream-0.0.4 app/models/activity_verb.rb
social_stream-0.0.3 app/models/activity_verb.rb