Sha256: bc0f0a90b7dcd98592825b53d10647f9539fe63cbc5bc589b5fa126dbef568c7
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 Bytes
Contents
module Socialization module MentionStore extend ActiveSupport::Concern included do belongs_to :mentionner, :polymorphic => true belongs_to :mentionable, :polymorphic => true validates_uniqueness_of :mentionable_type, :scope => [:mentionable_id, :mentionner_type, :mentionner_id], :message => 'You cannot mention the same thing twice in a given object.' def self.human_attribute_name(*args); ''; end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
socialization-0.3.0 | lib/socialization/mention_store.rb |