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