Class: JazzModel::Base
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- JazzModel::Base
- Defined in:
- lib/jazz_model/base.rb
Direct Known Subclasses
Chord, ChordQuality, ChordScale, ChordSymbol, Key, Mode, Scale, Tone, Voicing
Class Method Summary collapse
Class Method Details
.load_definitions(definition_name = :default) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/jazz_model/base.rb', line 8 def self.load_definitions(definition_name = :default) definition = JazzModel::Definition[definition_name] raise ArgumentError, "Definition #{definition_name} not found." unless definition definition.load end |