Sha256: c71c9bb9fd3343f851a4ab2006f86b82cbc5c4c10bbeb4916fcf721f913f06c0

Contents?: true

Size: 1.05 KB

Versions: 4

Compression:

Stored size: 1.05 KB

Contents

module Socialization
  module RedisStores
    class Like < Socialization::RedisStores::Base
      extend Socialization::Stores::Mixins::Base
      extend Socialization::Stores::Mixins::Like
      extend Socialization::RedisStores::Mixins::Base

      class << self
        alias_method :like!, :relation!;                           public :like!
        alias_method :unlike!, :unrelation!;                       public :unlike!
        alias_method :likes?, :relation?;                          public :likes?
        alias_method :likers_relation, :actors_relation;           public :likers_relation
        alias_method :likers, :actors;                             public :likers
        alias_method :likeables_relation, :subjects_relation;      public :likeables_relation
        alias_method :likeables, :subjects;                        public :likeables
        alias_method :remove_likers, :remove_actor_relations;      public :remove_likers
        alias_method :remove_likeables, :remove_subject_relations; public :remove_likeables
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
socialization-2.0.2 lib/socialization/stores/redis/like.rb
socialization-2.0.1 lib/socialization/stores/redis/like.rb
socialization-2.0.0 lib/socialization/stores/redis/like.rb
socialization-1.2.3 lib/socialization/stores/redis/like.rb