Sha256: e5016b4c5f359e1db3a214e127b0ec18ef18036ef16d4b01cad9f3dc8e003157

Contents?: true

Size: 200 Bytes

Versions: 4

Compression:

Stored size: 200 Bytes

Contents

class Difficulty < 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/difficulty.rb
permanent_records-2.1.2 test/difficulty.rb
permanent_records-2.1.1 test/difficulty.rb
permanent_records-2.1.0 test/difficulty.rb