Module: ActiveMusicbrainz::Model

Defined in:
lib/active_musicbrainz/models/base.rb,
lib/active_musicbrainz/models/model.rb,
lib/active_musicbrainz/models/factory.rb

Defined Under Namespace

Modules: Base Classes: Factory

Class Method Summary collapse

Class Method Details

.build_modelsObject



3
4
5
6
7
8
9
10
# File 'lib/active_musicbrainz/models/model.rb', line 3

def self.build_models
  Factory.define do
    ActiveRecord::Base.connection.tables.each do |table_name|
      model table_name
    end
  end
  true
end