Sha256: 0de49a0ea76d1531c429081f5d49c9440bc7744f69df547b7b15aa5217db4932

Contents?: true

Size: 197 Bytes

Versions: 4

Compression:

Stored size: 197 Bytes

Contents

class Comment < ActiveRecord::Base
  belongs_to :hole
  
  if ActiveRecord::VERSION::MAJOR >= 3
    default_scope where(:deleted_at => nil)
  else
    def self.unscoped
      self
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
permanent_records-2.3.0 test/comment.rb
permanent_records-2.1.2 test/comment.rb
permanent_records-2.1.1 test/comment.rb
permanent_records-2.1.0 test/comment.rb