Sha256: 4fd98f9afc501b377ce672e4440ee8473fa77effb2d756e97bee7b34e8460fb8

Contents?: true

Size: 415 Bytes

Versions: 10

Compression:

Stored size: 415 Bytes

Contents

module Caboose # :nodoc:
  module Acts # :nodoc:
    class BelongsToWithDeletedAssociation < ActiveRecord::Associations::BelongsToAssociation
      private
        def find_target
          @reflection.klass.find_with_deleted(
            @owner[@reflection.primary_key_name], 
            :conditions => conditions,
            :include    => @reflection.options[:include]
          )
        end
    end
  end
end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
coupa-acts_as_paranoid-1.0.20090228 lib/caboose/acts/belongs_to_with_deleted_association.rb
jcnetdev-acts_as_paranoid-1.0.20080706 lib/caboose/acts/belongs_to_with_deleted_association.rb
jcnetdev-acts_as_paranoid-1.1.20080706 lib/caboose/acts/belongs_to_with_deleted_association.rb
jcnetdev-acts_as_paranoid-1.2.20080706 lib/caboose/acts/belongs_to_with_deleted_association.rb
jcnetdev-acts_as_paranoid-1.3 lib/caboose/acts/belongs_to_with_deleted_association.rb
mtoros-acts_as_paranoid-0.0.1 lib/caboose/acts/belongs_to_with_deleted_association.rb
mtoros-acts_as_paranoid-0.0.2 lib/caboose/acts/belongs_to_with_deleted_association.rb
pager-acts_as_paranoid-1.0.20080505 lib/caboose/acts/belongs_to_with_deleted_association.rb
pager-acts_as_paranoid-1.0.20080506 lib/caboose/acts/belongs_to_with_deleted_association.rb
pager-acts_as_paranoid-1.0.20080507 lib/caboose/acts/belongs_to_with_deleted_association.rb