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-2.2.2 lib/lhs/concerns/service/first.rb
lhs-1.6.1 lib/lhs/concerns/service/first.rb
lhs-2.2.1 lib/lhs/concerns/service/first.rb
lhs-2.2.0 lib/lhs/concerns/service/first.rb
lhs-1.6.0 lib/lhs/concerns/service/first.rb
lhs-2.1.1 lib/lhs/concerns/service/first.rb
lhs-2.1.0 lib/lhs/concerns/service/first.rb
lhs-2.0.5 lib/lhs/concerns/service/first.rb
lhs-2.0.4 lib/lhs/concerns/service/first.rb
lhs-2.0.3 lib/lhs/concerns/service/first.rb
lhs-2.0.2 lib/lhs/concerns/service/first.rb
lhs-2.0.1 lib/lhs/concerns/service/first.rb
lhs-2.0.0 lib/lhs/concerns/service/first.rb
lhs-1.5.0 lib/lhs/concerns/service/first.rb
lhs-1.4.0 lib/lhs/concerns/service/first.rb
lhs-1.3.1 lib/lhs/concerns/service/first.rb
lhs-1.3.0 lib/lhs/concerns/service/first.rb
lhs-1.2.3 lib/lhs/concerns/service/first.rb
lhs-1.2.2 lib/lhs/concerns/service/first.rb
lhs-1.2.1 lib/lhs/concerns/service/first.rb