Sha256: e891c765e2ed55062449a2996b777ede251185a6610edebc3560fe55a46b4344
Contents?: true
Size: 424 Bytes
Versions: 1
Compression:
Stored size: 424 Bytes
Contents
module DataMapper class Collection include Aggregates private def with_repository_and_property(*args, &block) query = args.last.respond_to?(:merge) ? args.pop : {} property_name = args.first query = scoped_query(query) repository = query.repository property = properties[property_name] if property_name yield repository, property, query end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dm-aggregates-0.9.2 | lib/dm-aggregates/collection.rb |