Sha256: c42d8cffd50a5408ea98445aed072c7139d19ed26e7b31c74c59b947691ac209
Contents?: true
Size: 612 Bytes
Versions: 4
Compression:
Stored size: 612 Bytes
Contents
Description: Create a PORO collaborator associated object inheriting from `ActiveRecord::AssociatedObject` that's associated with an Active Record record class. It'll be associated on the record with `has_object`. Note: associated object names support pluralized class names. So "Seats" remain "seats" in all cases, and "Seat" remains "seat" in all cases. Example: bin/rails generate associated Organization::Seats This will create: app/models/organization/seats.rb test/models/organization/seats_test.rb And in Organization, this will insert: has_object :seats
Version data entries
4 entries across 4 versions & 1 rubygems