Module: Yogo::DataMapper::Model::Operations::Clear
- Defined in:
- lib/yogo/datamapper/model/operations/clear.rb
Constant Summary collapse
- Properties =
Operation.on(::DataMapper::Model) do |model| model.properties.clear model.properties.instance_variable_get(:@properties).clear #clear out the name index model end
- Relationships =
Operation.on(::DataMapper::Model) do |model| model.relationships.clear model end
- Validators =
Operation.on(::DataMapper::Model) do |model| model.validators.clear! model end
- All =
Properties * Relationships * Validators