Skip to content

Commit

Permalink
fix role_name return type
Browse files Browse the repository at this point in the history
  • Loading branch information
fcheung committed Nov 12, 2022
1 parent 49aa92f commit 216f6e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/tapioca/dsl/compilers/active_record_delegated_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module Compilers
# sig { returns(Class) }
# def entryable_class; end
#
# sig { returns(String) }
# sig { returns(ActiveSupport::StringInquirer) }
# def entryable_name; end
#
# sig { returns(T::Boolean) }
Expand Down Expand Up @@ -107,7 +107,7 @@ def populate_role_accessors(mod, role, types)
mod.create_method(
"#{role}_name",
parameters: [],
return_type: "String",
return_type: "ActiveSupport::StringInquirer",
)

mod.create_method(
Expand Down
2 changes: 1 addition & 1 deletion manual/compiler_activerecorddelegatedtypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Entry
sig { returns(Class) }
def entryable_class; end

sig { returns(String) }
sig { returns(ActiveSupport::StringInquirer) }
def entryable_name; end

sig { returns(T::Boolean) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def comment_id; end
sig { returns(Class) }
def entryable_class; end
sig { returns(String) }
sig { returns(ActiveSupport::StringInquirer) }
def entryable_name; end
sig { returns(T.nilable(Message)) }
Expand Down Expand Up @@ -195,7 +195,7 @@ def comment_uuid; end
sig { returns(Class) }
def entryable_class; end
sig { returns(String) }
sig { returns(ActiveSupport::StringInquirer) }
def entryable_name; end
sig { returns(T.nilable(Message)) }
Expand Down

0 comments on commit 216f6e6

Please sign in to comment.