diff options
| author | Luc Donnet | 2017-10-24 12:40:04 +0200 |
|---|---|---|
| committer | Luc Donnet | 2017-10-24 12:40:04 +0200 |
| commit | 5e5d06c815ea0b67c4e970011470dd7ac4a42431 (patch) | |
| tree | 654bb5a8ab4468b447137b97b18ed78ea9409fb6 /config | |
| parent | d0668e45ec978e6b5f7f3f98ffe5ebabd9e701d6 (diff) | |
| download | chouette-core-5e5d06c815ea0b67c4e970011470dd7ac4a42431.tar.bz2 | |
Make erd patch for multi relationships and add merge png in output
Diffstat (limited to 'config')
| -rw-r--r-- | config/initializers/relationship.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/config/initializers/relationship.rb b/config/initializers/relationship.rb new file mode 100644 index 000000000..6f3fc29be --- /dev/null +++ b/config/initializers/relationship.rb @@ -0,0 +1,15 @@ +require 'rails_erd/domain/relationship' + +module RailsERD + class Domain + class Relationship + class << self + private + + def association_identity(association) + Set[association_owner(association), association_target(association)] + end + end + end + end +end |
