Sha256: b3aaa1a32207259eb8b441868af7b5cce3c2c9fea832c0501234893e5d608a31
Contents?: true
Size: 350 Bytes
Versions: 2
Compression:
Stored size: 350 Bytes
Contents
class Contributor < ActiveRecord::Base include Consumer::Mapping has_and_belongs_to_many :books @habtm_registry = { :role => "attribute::role", :name => "name" } map(:first, "//ContributorResponse/contributor", @habtm_registry, :include => :books) map(:all, "//BookResponse/book/contributors/contributor", @habtm_registry) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
woahdae-consumer-0.8.1 | examples/active_record/models/contributor.rb |
woahdae-consumer-0.8.2 | examples/active_record/models/contributor.rb |