Skip to content

Commit

Permalink
RBS: Decleare Profile#profile_badges manually
Browse files Browse the repository at this point in the history
As a preparation of giving types to controllers, this adds types for
`Profile#profile_badges` manually because current rbs_rails does not
support HABTM association.  It should be removed if rbs_rails will
support it in the future.

refs: pocke/rbs_rails#272
  • Loading branch information
tk0miya committed Nov 6, 2023
1 parent 51ffcaf commit 7ca3951
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sig/handwritten/app/models/profile.rbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
class Profile < ::ApplicationRecord
# NOTE: This method has been declared manually because current rbs_rails does not support HABTM.
# It should be removed if rbs_rails will support it.
# refs: https://github.com/pocke/rbs_rails/pull/272
def profile_badges: () -> ProfileBadge::ActiveRecord_Associations_CollectionProxy

def ensure_image_from_github: () -> void

private def fetch_profile_image_from_github: () -> untyped
Expand Down

0 comments on commit 7ca3951

Please sign in to comment.