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

Default invalid message causes problems #128

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

Default invalid message causes problems #128

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
  validate { errors.add(:a_boolean) }
end
Interaction.new.valid?
# I18n::MissingInterpolationArgument: missing interpolation argument :type in "is not a valid %{type}" ({:model=>"Interaction", :attribute=>"A boolean", :value=>nil} given)
@ghost ghost assigned tfausak Feb 4, 2014
@tfausak tfausak closed this as completed in bbefbc3 Feb 4, 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