```ruby
class Fabrication::Generator::DataMapper < Fabrication::Generator::Base

  def self.supports?(klass)
    defined?(DataMapper) && klass.ancestors.include?(DataMapper::Hook)
  end

  protected

  def persist
    __instance.save
  end
end
```

Store DM attributes with mass assignment
user
```ruby
class Fabrication::Generator::DataMapper < Fabrication::Generator::Base

  def self.supports?(klass)
    defined?(DataMapper) && klass.ancestors.include?(DataMapper::Hook)
  end

  def build_instance
    self.__instance = __klass.new(__attributes)
  end

  protected

  def persist
    __instance.save
  end
end
```
assistant