Sha256: 9ee1622d71f18fd88919ca1e7565217b95f5d387780f465234db0d9fd1fc6c0c
Contents?: true
Size: 707 Bytes
Versions: 3
Compression:
Stored size: 707 Bytes
Contents
module Yodeler module ListensToYodeler extend ActiveSupport::Concern included do end module ClassMethods def listens_to_yodeler(subscriptions_assocation_name = :yodeler_subscriptions) cattr_accessor :yodeler_subscriptions_name self.yodeler_subscriptions_name = subscriptions_assocation_name has_many self.yodeler_subscriptions_name, dependent: :destroy, class_name: "Yodeler::Subscription", foreign_key: :subscriber_id include Yodeler::ListensToYodeler::LocalInstanceMethods end end module LocalInstanceMethods;end; end end ActiveRecord::Base.send :include, Yodeler::ListensToYodeler
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yodeler-0.0.7 | lib/yodeler/listens_to_yodeler.rb |
yodeler-0.0.6 | lib/yodeler/listens_to_yodeler.rb |
yodeler-0.0.5 | lib/yodeler/listens_to_yodeler.rb |