Sha256: 657dd57400004343182454ead1367194d8fead4754241168c962f37961cd24a9

Contents?: true

Size: 195 Bytes

Versions: 7

Compression:

Stored size: 195 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

7 entries across 7 versions & 1 rubygems

Version Path
permanent_records-3.1.5 spec/support/comment.rb
permanent_records-3.1.4 spec/support/comment.rb
permanent_records-3.1.3 spec/support/comment.rb
permanent_records-3.0.3 spec/support/comment.rb
permanent_records-3.0.2 spec/support/comment.rb
permanent_records-3.0.1 spec/support/comment.rb
permanent_records-3.0.0 spec/support/comment.rb