Skip to content

validates_inclustion_of => NoMethodError #7

@BlackReloaded

Description

@BlackReloaded

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions