Sha256: 5f4a1e2e60a8ca66d17cdc349708c5d514cf3b4a30814b9efedc76af0e7f2faf
Contents?: true
Size: 486 Bytes
Versions: 8
Compression:
Stored size: 486 Bytes
Contents
# typed: false 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 def select_columns(*args) select(*args) end # Redeclare these dynamic methods here otherwise they will be generated by # `srb rbi hidden-definitions` def find_by_id(id) find_by(id: id) end def find_by_id!(id) find_by!(id: id) end end end
Version data entries
8 entries across 8 versions & 1 rubygems