Sha256: a066494dd97d796e0a3a04d25cd784654af5e7a7c24980055fb5f2ae564c53a8
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
require 'active_support/concern' %w(helpers stores actors victims).each do |path| Dir["#{File.dirname(__FILE__)}/#{path}/**/*.rb"].each { |f| require(f) } end 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::Mentioner} def acts_as_mentioner(opts = {}) include Socialization::Mentioner end # Make the current class a {Socialization::Mentionable} def acts_as_mentionable(opts = {}) include Socialization::Mentionable end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
socialization-0.5.0.beta | lib/socialization/acts_as_helpers.rb |