Sha256: b805a618e056132f30824e43381abee70214915c77e1e4d308f7f009ee65a994

Contents?: true

Size: 1.31 KB

Versions: 7

Compression:

Stored size: 1.31 KB

Contents

require 'active_support/concern'

module Socialization
  module ActsAsHelpers
    extend ActiveSupport::Concern

    module ClassMethods
      # Make the current class a {Socialization::Follower}
      def acts_as_follower(opts = {})
        include Socialization::Follower
      end

      # Make the current class a {Socialization::Followable}
      def acts_as_followable(opts = {})
        include Socialization::Followable
      end

      # Make the current class a {Socialization::Liker}
      def acts_as_liker(opts = {})
        include Socialization::Liker
      end

      # Make the current class a {Socialization::Likeable}
      def acts_as_likeable(opts = {})
        include Socialization::Likeable
      end

      # Make the current class a {Socialization::Commenter}
      def acts_as_commenter(opts = {})
        include Socialization::Commenter
      end

      # Make the current class a {Socialization::Commentable}
      def acts_as_commentable(opts = {})
        include Socialization::Commentable
      end

      # Make the current class a {Socialization::Sharer}
      def acts_as_sharer(opts = {})
        include Socialization::Sharer
      end

      # Make the current class a {Socialization::Shareable}
      def acts_as_shareable(opts = {})
        include Socialization::Shareable
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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