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

Errors.merge! chokes on symbolic errors with options #129

Closed
tfausak opened this issue Feb 4, 2014 · 0 comments
Closed

Errors.merge! chokes on symbolic errors with options #129

tfausak opened this issue Feb 4, 2014 · 0 comments
Assignees
Labels

Comments

@tfausak
Copy link
Collaborator

tfausak commented Feb 4, 2014

class Interaction < ActiveInteraction::Base
  boolean :a_boolean
end
interaction = Interaction.new
interaction.errors.add_sym(:a_boolean, :invalid_type, type: :boolean)
errors = ActiveInteraction::Errors.new(interaction)
errors.merge!(interaction.errors)
# I18n::MissingInterpolationArgument: missing interpolation argument :type in "is not a valid %{type}" ({:model=>"Interaction", :attribute=>"A boolean", :value=>nil} given)
@tfausak tfausak closed this as completed in cd6113a Feb 4, 2014
@tfausak tfausak self-assigned this Feb 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant