spec/shared/relations.rb in rom-repository-1.0.0.rc1 vs spec/shared/relations.rb in rom-repository-1.0.0.rc2
- old
+ new
@@ -17,9 +17,10 @@
configuration.relation(:users) do
schema(infer: true) do
associations do
has_many :posts
+ has_many :posts, as: :aliased_posts
has_many :labels, through: :posts
end
end
def by_name(name)