Skip to content
New issue

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

merging existing base string errors fails #349

Closed
AaronLasseigne opened this issue Jan 15, 2016 · 0 comments · Fixed by #350
Closed

merging existing base string errors fails #349

AaronLasseigne opened this issue Jan 15, 2016 · 0 comments · Fixed by #350
Assignees
Labels

Comments

@AaronLasseigne
Copy link
Owner

class I < ActiveInteraction::Base
  validate :v
  def execute; end
  def v; errors.add(:base, 'failed'); end
end

class E < ActiveInteraction::Base
  def execute; compose(I); end
end

> E.run.errors.messages
# => {:base=>["translation missing: en.active_interaction.errors.models.i.attributes.base.failed"]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant