Sha256: fb0b6b942b8b93d613d803507d0a50514171bc32e5cf1cfe4e8c528eb26d5052
Contents?: true
Size: 684 Bytes
Versions: 1
Compression:
Stored size: 684 Bytes
Contents
require 'active_support/concern' module SocialStream module Models # Additional features for models that are actors module Actor extend ActiveSupport::Concern included do belongs_to :actor, :validate => true, :autosave => true delegate :name, :name=, :email, :email=, :permalink, :permalink=, :disabled, :disabled=, :ties, :sent_ties, :received_ties, :wall, :to => :actor! end module InstanceMethods def actor! actor || build_actor end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
social_stream-0.0.1 | lib/social_stream/models/actor.rb |