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
It's possible to set the @result instance variable and then call outcome.result on an invalid outcome.
@result
outcome.result
class Interaction < ActiveInteraction::Base boolean :attribute validate do @result = 'result' errors.add(:attribute, 'invalid') end end outcome = Interaction.run(attribute: true) outcome.invalid? # => true outcome.result # => "result"
The text was updated successfully, but these errors were encountered:
30b9380
tfausak
No branches or pull requests
It's possible to set the
@result
instance variable and then calloutcome.result
on an invalid outcome.The text was updated successfully, but these errors were encountered: