We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The T generic silently clashes with the one used in after_save.
T
after_save
So this does not work:
class SaveSomeModel(T) < SomeModel::SaveOperation after_save do |some_model| # use T... end end
But this does:
class SaveSomeModel(Some) < SomeModel::SaveOperation after_save do |some_model| # use Some... end end
As proposed in the Discord, it would be better not never use T inside the framework, but use something like LuckyT instead.
LuckyT
The text was updated successfully, but these errors were encountered:
Starting work on updating generic interface to be less ambiguous to a…
b20374c
…void name collisions. Fixes #836
Successfully merging a pull request may close this issue.
The
T
generic silently clashes with the one used inafter_save
.So this does not work:
But this does:
As proposed in the Discord, it would be better not never use
T
inside the framework, but use something likeLuckyT
instead.The text was updated successfully, but these errors were encountered: