module ActsAsHoldable::Holder::ClassMethods

Public Instance Methods

acts_as_holder(_opts = {}) click to toggle source
# File lib/acts_as_holdable/holder.rb, line 11
def acts_as_holder(_opts = {})
  class_eval do
    has_many :holdings, as: :holder, dependent: :destroy, class_name: '::ActsAsHoldable::Holding'
  end

  include ActsAsHoldable::Holder::InstanceMethods
  extend ActsAsHoldable::Holder::SingletonMethods
end
holder?() click to toggle source
# File lib/acts_as_holdable/holder.rb, line 20
def holder?
  false
end