Sha256: 6826833020fc24574ba9bb338095a7cc35e271cb5598190a7b1a4af161530baa

Contents?: true

Size: 250 Bytes

Versions: 3

Compression:

Stored size: 250 Bytes

Contents

module PurgatoryModule
  extend ActiveSupport::Concern

  module ClassMethods
    def use_purgatory
      self.has_many :purgatories, as: :soul
    end
  end

  def purgatory!(requester)
    Purgatory.create soul: self, requester: requester
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
purgatory-1.1.0 lib/purgatory/purgatory_module.rb
purgatory-1.0.0 lib/purgatory/purgatory_module.rb
purgatory-0.2.0 lib/purgatory/purgatory_module.rb