DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป is a community of 963,274 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
hiko1129
hiko1129

Posted on • Originally published at note.hiko1129.com on

[Rails][Sorbet] How to add kaminari type definitions in sorbet-rails

Translate ja to en

kaminariใซ้™ใฃใŸ่ฉฑใงใฏใชใ„ใŒไธ€้ƒจใฎgemใซ้–ขใ—ใฆใฏsorbet-railsใฎinitializerใ‚’่ฟฝๅŠ ใ™ใ‚‹ใ“ใจใงๅž‹็”Ÿๆˆๅฏพ่ฑกใซๅซใ‚ใ‚‹ใ“ใจใŒใงใใ‚‹ใ€‚

kaminariใฎgemใ‚’ๅ…ฅใ‚Œใฆใ„ใ‚‹ใ‹ใ‚‰ๅ‹ๆ‰‹ใซ็”Ÿๆˆใ•ใ‚Œใ‚‹ใจใ‹ใงใฏใชใใ‚ใใพใง่‡ชๅˆ†ใง่จญๅฎšใ™ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚‹ๆจกๆง˜ใ€‚

# -- config/initializers/sorbet_rails.rb
SorbetRails.configure do |config|
  config.enabled_gem_plugins = [
    :kaminari
  ]
end
Enter fullscreen mode Exit fullscreen mode

ๅ‚่€ƒ

Top comments (0)

Update Your DEV Experience Level:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. ๐Ÿ›