Sha256: a92f02146afef7f80b952bd54b6390823c923de6a48e0e1ea77a430f5d5f3833

Contents?: true

Size: 224 Bytes

Versions: 55

Compression:

Stored size: 224 Bytes

Contents

require 'active_support'

class LHS::Record

  module First
    extend ActiveSupport::Concern

    module ClassMethods
      def first
        find_by
      end

      def first!
        find_by!
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
lhs-5.6.1 lib/lhs/concerns/record/first.rb
lhs-5.6.0 lib/lhs/concerns/record/first.rb
lhs-5.5.0 lib/lhs/concerns/record/first.rb
lhs-5.4.2 lib/lhs/concerns/record/first.rb
lhs-5.4.1 lib/lhs/concerns/record/first.rb
lhs-5.4.0 lib/lhs/concerns/record/first.rb
lhs-5.3.0 lib/lhs/concerns/record/first.rb
lhs-5.2.0 lib/lhs/concerns/record/first.rb
lhs-5.1.0 lib/lhs/concerns/record/first.rb
lhs-5.0.4 lib/lhs/concerns/record/first.rb
lhs-5.0.3 lib/lhs/concerns/record/first.rb
lhs-5.0.1 lib/lhs/concerns/record/first.rb
lhs-5.0.0 lib/lhs/concerns/record/first.rb
lhs-4.2.1 lib/lhs/concerns/record/first.rb
lhs-4.2.0 lib/lhs/concerns/record/first.rb
lhs-4.1.0 lib/lhs/concerns/record/first.rb
lhs-4.0.0 lib/lhs/concerns/record/first.rb
lhs-3.4.2 lib/lhs/concerns/record/first.rb
lhs-3.4.1 lib/lhs/concerns/record/first.rb
lhs-3.4.0 lib/lhs/concerns/record/first.rb