You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is the order in which the gems are loaded (remember, a Rails 3 app). The gem hstore_flags line must come after bic_validation in order to prevent this problem.
I won't dig more into the code since it's a rare situation which most likely won't occur with a Rails 4 app (hstore baked in) and the Rails 4 version of hstore_flags.
Trying to use the gem in a model with a BIC field called encrypted_BIC results in :
ArgumentError: Unknown validator: 'BicValidator'
after installing the gem and following the installations instructions.
the model has the following:
class ModelName < ActiveRecord::Base
...
validates :encrypted_BIC, bic: true
...
end
and when trying in the console to do:
ModelName.new
then get the above error.
The text was updated successfully, but these errors were encountered: