spec/dummy/app/mappers/task_mapper.rb in rom-rails-0.9.0 vs spec/dummy/app/mappers/task_mapper.rb in rom-rails-1.0.0.beta1
- old
+ new
@@ -1,7 +1,7 @@
class TaskMapper < ROM::Mapper
relation :tasks
- register_as :entity
+ register_as :task
model name: 'Task'
attribute :id
attribute :title