spec/shared/relations.rb in rom-repository-1.3.2 vs spec/shared/relations.rb in rom-repository-1.3.3
- old
+ new
@@ -49,9 +49,10 @@
configuration.relation(:tasks) do
schema(infer: true) do
associations do
belongs_to :user
+ belongs_to :users, as: :assignee
end
end
def find(criteria)
where(criteria)