Method: DBDiagram::Domain#initialize

Defined in:
lib/db_diagram/domain.rb

#initialize(models = [], options = {}) ⇒ Domain

Create a new domain model object based on the given array of models. The given models are assumed to be subclasses of ActiveRecord::Base.



45
46
47
# File 'lib/db_diagram/domain.rb', line 45

def initialize(models = [], options = {})
  @source_models, @options = models, DBDiagram.options.merge(options)
end