Commit 7f26f54e by ivan Lan

Change create_calsses to a class_name

parent 95905da0
......@@ -4,7 +4,7 @@ module Weather
module Model
require 'source_schema'
def create_classes
def self.create_classes
Weather::Model::SourceSchema.each do |source|
Object.const_set("#{source}::Mysql", Class.new(Source::Mysql))
Object.const_set("#{source}::Ohm", Class.new(Source::Ohm))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment