Sha256: 15a8dad394fad40e6e14ab82b96eda083796d66dc03155b84683e8a82538826c

Contents?: true

Size: 311 Bytes

Versions: 14

Compression:

Stored size: 311 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({}, options)
      end

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
lhs-19.1.0 lib/lhs/concerns/record/first.rb
lhs-19.0.2 lib/lhs/concerns/record/first.rb
lhs-19.0.1 lib/lhs/concerns/record/first.rb
lhs-19.0.0 lib/lhs/concerns/record/first.rb
lhs-19.0.0.pre.endpoint.1 lib/lhs/concerns/record/first.rb
lhs-18.0.3 lib/lhs/concerns/record/first.rb
lhs-18.0.2 lib/lhs/concerns/record/first.rb
lhs-18.0.1 lib/lhs/concerns/record/first.rb
lhs-18.0.0 lib/lhs/concerns/record/first.rb
lhs-17.0.1 lib/lhs/concerns/record/first.rb
lhs-17.0.1.pre1 lib/lhs/concerns/record/first.rb
lhs-18.0.0.pre.pre1 lib/lhs/concerns/record/first.rb
lhs-17.0.0 lib/lhs/concerns/record/first.rb
lhs-16.1.6 lib/lhs/concerns/record/first.rb