Sha256: 92c393885d143666da6482deb7c6a240d126af91d9fa5991e349f5698b0b08d0

Contents?: true

Size: 187 Bytes

Versions: 2

Compression:

Stored size: 187 Bytes

Contents

module SorbetRails
  module CustomFinderMethods
    def find_n(*ids)
      find(ids)
    end

    def first_n(n)
      first(n)
    end

    def last_n(n)
      last(n)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sorbet-rails-0.4.0 lib/sorbet-rails/custom_finder_methods.rb
sorbet-rails-0.3.0 lib/sorbet-rails/custom_finder_methods.rb