Sha256: 000fa6e19a1a9932fa5e1124c76f86fa5a23826534ecaa1d1100be8632594759

Contents?: true

Size: 226 Bytes

Versions: 25

Compression:

Stored size: 226 Bytes

Contents

require 'active_support'

class LHS::Service

  module First
    extend ActiveSupport::Concern

    module ClassMethods

      def first
        find_by
      end

      def first!
        find_by!
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
lhs-1.2.0 lib/lhs/concerns/service/first.rb
lhs-1.1.0 lib/lhs/concerns/service/first.rb
lhs-1.0.0 lib/lhs/concerns/service/first.rb
lhs-0.4.0 lib/lhs/concerns/service/first.rb
lhs-0.3.0 lib/lhs/concerns/service/first.rb