module SorbetRails::CustomFinderMethods

Public Instance Methods

find_by_id(id) click to toggle source

Redeclare these dynamic methods here otherwise they will be generated by `srb rbi hidden-definitions`

# File lib/sorbet-rails/rails_mixins/custom_finder_methods.rb, line 18
def find_by_id(id)
  find_by(id: id)
end
find_by_id!(id) click to toggle source
# File lib/sorbet-rails/rails_mixins/custom_finder_methods.rb, line 22
def find_by_id!(id)
  find_by!(id: id)
end
find_n(*ids) click to toggle source
# File lib/sorbet-rails/rails_mixins/custom_finder_methods.rb, line 4
def find_n(*ids)
  find(*ids)
end
first_n(n) click to toggle source
# File lib/sorbet-rails/rails_mixins/custom_finder_methods.rb, line 8
def first_n(n)
  first(n)
end
last_n(n) click to toggle source
# File lib/sorbet-rails/rails_mixins/custom_finder_methods.rb, line 12
def last_n(n)
  last(n)
end