Commit f8df5076 by ivan Lan

Add set_ohm to WeatherModel

parent 61fc8101
...@@ -11,4 +11,8 @@ module WeatherModel ...@@ -11,4 +11,8 @@ module WeatherModel
Object.const_get(settings[:sort]).const_set("#{source.to_s.gsub('_', '::')}", Class.new(Storer::Mysql)).use_settings(settings) Object.const_get(settings[:sort]).const_set("#{source.to_s.gsub('_', '::')}", Class.new(Storer::Mysql)).use_settings(settings)
end end
end end
def self.set_ohm redis
Ohm.redis = redis
end
end end
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