lib/legion/data/model.rb in legion-data-1.1.5 vs lib/legion/data/model.rb in legion-data-1.2.0
- old
+ new
@@ -3,21 +3,21 @@
module Models
class << self
attr_reader :loaded_models
def models
- %w[user group extension chain relationship function task runner task_log datacenter environment node setting]
+ %w[extension function task runner node setting]
end
def load
Legion::Logging.info 'Loading Legion::Data::Models'
@loaded_models ||= []
require_sequel_models(models)
Legion::Settings[:data][:models][:loaded] = true
end
def require_sequel_models(files = models)
- Dir["#{File.dirname(__FILE__)}models/*.rb"].each { |file| puts file }
+ # Dir["#{File.dirname(__FILE__)}models/*.rb"].each { |file| puts file }
files.each { |file| load_sequel_model(file) }
end
def load_sequel_model(model)
Legion::Logging.debug("Trying to load #{model}.rb")