Skip to content

Commit

Permalink
Merge pull request #224 from bdewater/actionpack-params-require
Browse files Browse the repository at this point in the history
Annotate ActionController::Parameters#require
  • Loading branch information
KaanOzkan authored Feb 26, 2024
2 parents 2658baf + c8b5f1a commit cdf6f7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rbi/annotations/actionpack.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ class ActionController::Parameters
sig { params(key: T.any(String, Symbol)).returns(T.untyped) }
def [](key); end

sig { params(key: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(T.untyped) }
sig { params(key: T.any(String, Symbol)).returns(ActionController::Parameters) }
sig { params(key: T::Array[T.any(String, Symbol)]).returns(T::Array[ActionController::Parameters]) }
def require(key); end

# required is an alias of require
Expand Down

0 comments on commit cdf6f7b

Please sign in to comment.