Sha256: cd5d47d49094a08ad009c1d21ca1f6049e3f658a7f055cabbe4eeed5485cb2c0

Contents?: true

Size: 750 Bytes

Versions: 7

Compression:

Stored size: 750 Bytes

Contents

module Socialization
  class << self
    def follow_model
      if @follow_model
        @follow_model
      else
        ::Follow
      end
    end

    def follow_model=(klass)
      @follow_model = klass
    end

    def like_model
      if @like_model
        @like_model
      else
        ::Like
      end
    end

    def like_model=(klass)
      @like_model = klass
    end

    def comment_model
      if @comment_model
        @comment_model
      else
        ::Comment
      end
    end

    def comment_model=(klass)
      @comment_model = klass
    end

    def share_model
      if @share_model
        @share_model
      else
        ::Share
      end
    end

    def share_model=(klass)
      @share_model = klass
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
socialization-cassandra-0.0.7.pre.alpha lib/socialization/config/config.rb
socialization-cassandra-0.0.6.pre.alpha lib/socialization/config/config.rb
socialization-cassandra-0.0.5.pre.alpha lib/socialization/config/config.rb
socialization-cassandra-0.0.4.pre.alpha lib/socialization/config/config.rb
socialization-cassandra-0.0.3.pre.alpha lib/socialization/config/config.rb
socialization-cassandra-0.0.2.pre.alpha lib/socialization/config/config.rb
socialization-cassandra-0.0.1.pre.alpha lib/socialization/config/config.rb