You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MyAction can be an abstract struct and callbacks should work in this case as well
Prism::Params and Prism::Auth included along with Prism::Action automatically inject those before callbacks Introduce Prism::Action::Params & Prism::Action::Auth, which is more straightforward IMO
The text was updated successfully, but these errors were encountered:
Composition over inheritance!
Ideal code would be:
That said, following must be implemented:
Prism::Action
includesCallbacks
and they do actually work (see Can't call re-defined method. crystal-lang/crystal#1104 (comment))MyAction
can be an abstract struct and callbacks should work in this case as wellIntroducePrism::Params
andPrism::Auth
included along withPrism::Action
automatically inject thosebefore
callbacksPrism::Action::Params
&Prism::Action::Auth
, which is more straightforward IMOThe text was updated successfully, but these errors were encountered: