Sha256: 73b2560e9fa068fe1768097f1552d4e9dd3da08d47d33742b960c32d57cf308e

Contents?: true

Size: 327 Bytes

Versions: 62

Compression:

Stored size: 327 Bytes

Contents

# frozen_string_literal: true

require 'active_support'

class LHS::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

62 entries across 62 versions & 1 rubygems

Version Path
lhs-26.2.0 lib/lhs/concerns/record/first.rb
lhs-26.1.0 lib/lhs/concerns/record/first.rb
lhs-26.0.1 lib/lhs/concerns/record/first.rb
lhs-26.0.0 lib/lhs/concerns/record/first.rb
lhs-25.2.0 lib/lhs/concerns/record/first.rb
lhs-25.1.0 lib/lhs/concerns/record/first.rb
lhs-25.0.4 lib/lhs/concerns/record/first.rb
lhs-25.0.3 lib/lhs/concerns/record/first.rb
lhs-25.0.2 lib/lhs/concerns/record/first.rb
lhs-25.0.1 lib/lhs/concerns/record/first.rb
lhs-25.0.0 lib/lhs/concerns/record/first.rb
lhs-24.1.2 lib/lhs/concerns/record/first.rb
lhs-24.1.1 lib/lhs/concerns/record/first.rb
lhs-24.1.0 lib/lhs/concerns/record/first.rb
lhs-24.1.0.pre.2 lib/lhs/concerns/record/first.rb
lhs-24.1.0.pre.1 lib/lhs/concerns/record/first.rb
lhs-24.0.0 lib/lhs/concerns/record/first.rb
lhs-23.0.2 lib/lhs/concerns/record/first.rb
lhs-23.0.1 lib/lhs/concerns/record/first.rb
lhs-23.0.0 lib/lhs/concerns/record/first.rb