Commit 90983ca7 by liyijie

Fix Ohm wrong data attributes

parent 5ae6dd0b
......@@ -84,6 +84,15 @@ module WeatherModel
super
end
# # Write the dictionary of key-value pairs to the model.
def method_missing(method, *args)
if method.to_s.end_with? '='
self.class.attribute method.to_s.delete('=')
else
super
end
end
def self.type_proc type
case type
when :integer
......
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