Class: ModelExplorer::Associations::Singular

Inherits:
Base
  • Object
show all
Defined in:
lib/model_explorer/associations/singular.rb

Instance Attribute Summary

Attributes inherited from Base

#association, #record, #reflection

Instance Method Summary collapse

Methods inherited from Base

#initialize, #records

Constructor Details

This class inherits a constructor from ModelExplorer::Associations::Base

Instance Method Details

#exportObject



4
5
6
7
8
9
10
# File 'lib/model_explorer/associations/singular.rb', line 4

def export
  {
    name: name,
    type: macro,
    records: export_records
  }
end