Sha256: d3e5d0c94f4ab763a88268c92bfef5c3f3649412beb5630133bc9a07041fd89c

Contents?: true

Size: 236 Bytes

Versions: 2

Compression:

Stored size: 236 Bytes

Contents

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

  validates_uniqueness_of :name

  has_many :activities

  class << self
    def [] name
      find_by_name(name)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
social_stream-0.0.2 app/models/activity_verb.rb
social_stream-0.0.1 app/models/activity_verb.rb