Sha256: 0dd0e4d27f53d8e08bbe15481ce974605838a543f9ddf915ec4267595d380074

Contents?: true

Size: 280 Bytes

Versions: 110

Compression:

Stored size: 280 Bytes

Contents

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

110 entries across 110 versions & 1 rubygems

Version Path
lhs-16.1.5 lib/lhs/concerns/record/first.rb
lhs-16.1.4 lib/lhs/concerns/record/first.rb
lhs-16.1.3 lib/lhs/concerns/record/first.rb
lhs-16.1.2 lib/lhs/concerns/record/first.rb
lhs-16.1.1 lib/lhs/concerns/record/first.rb
lhs-16.1.0 lib/lhs/concerns/record/first.rb
lhs-16.0.1 lib/lhs/concerns/record/first.rb
lhs-16.0.0 lib/lhs/concerns/record/first.rb
lhs-15.7.0 lib/lhs/concerns/record/first.rb
lhs-15.6.1 lib/lhs/concerns/record/first.rb
lhs-15.6.0 lib/lhs/concerns/record/first.rb
lhs-15.5.1 lib/lhs/concerns/record/first.rb
lhs-15.5.0 lib/lhs/concerns/record/first.rb
lhs-15.4.1 lib/lhs/concerns/record/first.rb
lhs-15.4.0 lib/lhs/concerns/record/first.rb
lhs-15.4.0.pre.hasone.1 lib/lhs/concerns/record/first.rb
lhs-15.3.3 lib/lhs/concerns/record/first.rb
lhs-15.3.3.pre.fixoptions.1 lib/lhs/concerns/record/first.rb
lhs-15.3.2 lib/lhs/concerns/record/first.rb
lhs-15.3.1 lib/lhs/concerns/record/first.rb