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