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
I was having similar behavior, until I explicitly included Validatable in my class.
class Product
include SimplyStored::Couch
include Validatable #without this line I get "NoMethodError (add_validations)
property :name
validates_uniqueness_of :name
end
Using rails (3.0.3)
Using simply_stored (0.3.9)
Using mattmatt-validatable (1.8.4)
Hi,
the following class
class Account
include SimplyStored::Couch
property :name
property :type
validates_inclusion_of :type, :in => ["a","b"]
end
leads to following error :
undefined method `add_validations' for Account:Class
the following works fine:
validates_presence_of :type
my configuration: rails 3.0.0, ruby 1.8.7, gem 1.3.7, simply_stored 0.3.8, validatable 1.6.7
The text was updated successfully, but these errors were encountered: