Sha256: 632dad4f57740189f4d96d99f4e0c0617de1a585bd499f22cc2d394f4d2089a4
Contents?: true
Size: 774 Bytes
Versions: 6
Compression:
Stored size: 774 Bytes
Contents
require 'mention_system/mention' require 'mention_system/mention_processor' require 'mention_system/mentionee' require 'mention_system/mentioner' ### # MentionSystem module # # This module defines common behavior in mention system ### module MentionSystem ### # Specifies if self can be mentioned by {Mentioner} objects # # @return [Boolean] ### def is_mentionee? false end ### # Specifies if self can mention {Mentionee} objects # # @return [Boolean] ### def is_mentioner? false end ### # Instructs self to act as mentionee ### def act_as_mentionee include Mentionee end ### # Instructs self to act as mentioner ### def act_as_mentioner include Mentioner end end ActiveRecord::Base.extend MentionSystem
Version data entries
6 entries across 6 versions & 1 rubygems