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

Version Path
active_record-associated_object-0.9.1 lib/generators/associated/USAGE
active_record-associated_object-0.9.0 lib/generators/associated/USAGE
active_record-associated_object-0.8.3 lib/generators/associated/USAGE
active_record-associated_object-0.8.2 lib/generators/associated/USAGE