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-6.7.2 lib/lhs/concerns/record/first.rb
lhs-6.7.1 lib/lhs/concerns/record/first.rb
lhs-6.7.0 lib/lhs/concerns/record/first.rb
lhs-6.6.2 lib/lhs/concerns/record/first.rb
lhs-6.6.1 lib/lhs/concerns/record/first.rb
lhs-6.6.0 lib/lhs/concerns/record/first.rb
lhs-6.5.0 lib/lhs/concerns/record/first.rb
lhs-6.4.0 lib/lhs/concerns/record/first.rb
lhs-6.3.1 lib/lhs/concerns/record/first.rb
lhs-6.3.0 lib/lhs/concerns/record/first.rb
lhs-6.2.0 lib/lhs/concerns/record/first.rb
lhs-6.1.0 lib/lhs/concerns/record/first.rb
lhs-6.0.0 lib/lhs/concerns/record/first.rb
lhs-5.7.1 lib/lhs/concerns/record/first.rb
lhs-5.7.0 lib/lhs/concerns/record/first.rb
lhs-5.6.6 lib/lhs/concerns/record/first.rb
lhs-5.6.5 lib/lhs/concerns/record/first.rb
lhs-5.6.4 lib/lhs/concerns/record/first.rb
lhs-5.6.3 lib/lhs/concerns/record/first.rb
lhs-5.6.2 lib/lhs/concerns/record/first.rb