17 Matching Annotations
- Aug 2023
-
edgeguides.rubyonrails.org edgeguides.rubyonrails.org
-
The method name is generated by replacing spaces with underscores. The result does not need to be a valid Ruby identifier though — the name may contain punctuation characters, etc. That's because in Ruby technically any string may be a method name. This may require use of define_method and send calls to function properly, but formally there's little restriction on the name.
-
- Mar 2023
-
-
We're going to define a has-many relationship for a user's second factors, to be able to support multiple second factor types, e.g. TOTP, backup codes, or hardware keys.
-
- May 2022
-
github.com github.com
-
I think RSpec should provide around(:context)/around(:all). Not because of any particular use case, but simply for API consistency. It's much simpler to tell users "there are 3 kinds of hooks (before, after and around) and each can be used with any of 3 scopes (example, context and suite)". Having some kinds of hooks work with only some kinds of scopes makes the API inconsistent and forces us to add special case code to emit warnings and also write extra documentation for this fact.
-
- Jul 2021
-
about.gitlab.com about.gitlab.com
-
Epics can contain both issues and epics as children
-
- Jun 2021
-
graphql-ruby.org graphql-ruby.org
-
This kind of error handling does express error state (either via HTTP 500 or by the top-level "errors" key), but it doesn’t take advantage of GraphQL’s type system and can only express one error at a time.
-
-
github.com github.com
-
The primary branch in git can have any name by design.
-
- May 2021
-
kit.svelte.dev kit.svelte.dev
-
To set multiple cookies in a single set of response headers, you can return an array:
-
- Mar 2021
-
github.com github.com
-
The guard name defaults to default and can be set via name:. This allows having multiple guards.
-
- Feb 2021
-
trailblazer.to trailblazer.to
-
# Yes, you can use lambdas as steps, too! step ->(ctx, params:, **) { params.is_a?(Hash) }
-
-
trailblazer.to trailblazer.to
-
A nested activity doesn’t have to have two ends, only.
-
Please note that I/O works for both “simple” tasks as well as nested activities.
-
-
github.com github.com
-
Note that it's perfectly fine to add errors during execution. Not all errors have to come from type checking or validation.
-
-
github.com github.com
-
*initialize* also supports passing resources (also attributes if you would # like to) manually
-
- Jan 2021
-
svelte.dev svelte.dev
-
It must be called during the component's initialisation (but doesn't need to live inside the component; it can be called from an external module).
-
- Dec 2020
-
github.com github.com
-
Fixes #1037 allow slotted components via making <Component> <Inner slot="foo" /> </Component> as a sugar syntax for <Component> <svelte:fragment slot="foo"> <Inner /> </svelte:fragment> </Component>
-
-
svelte.dev svelte.dev
-
It's possible to have multiple event listeners for the same event
Tags
Annotators
URL
-
- Sep 2020
-
final-form.org final-form.org
-
More than one subscriber can subscribe to the same field.
-