Sha256: 2055df03cd0ba661b936afad006966fc3dd45b9acf16b83c3140823103412046

Contents?: true

Size: 327 Bytes

Versions: 12

Compression:

Stored size: 327 Bytes

Contents

# frozen_string_literal: true

require 'active_support'

class DHS::Record

  module First
    extend ActiveSupport::Concern

    module ClassMethods
      def first(options = nil)
        find_by({}, trace!(options))
      end

      def first!(options = nil)
        find_by!({}, trace!(options))
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dhs-1.6.0 lib/dhs/concerns/record/first.rb
dhs-1.5.0 lib/dhs/concerns/record/first.rb
dhs-1.4.2 lib/dhs/concerns/record/first.rb
dhs-1.4.1 lib/dhs/concerns/record/first.rb
dhs-1.4.0 lib/dhs/concerns/record/first.rb
dhs-1.3.0 lib/dhs/concerns/record/first.rb
dhs-1.2.0 lib/dhs/concerns/record/first.rb
dhs-1.1.0 lib/dhs/concerns/record/first.rb
dhs-1.0.3 lib/dhs/concerns/record/first.rb
dhs-1.0.2 lib/dhs/concerns/record/first.rb
dhs-1.0.1 lib/dhs/concerns/record/first.rb
dhs-1.0.0 lib/dhs/concerns/record/first.rb