Commit 697c0f67 by ivan Lan

Fix the last commit

parent 51424f9e
......@@ -37,7 +37,7 @@ module Shotengai
def template_with_value key, value: "#{key}_value", template: "#{key}_template"
class_eval %Q{
def #{key}
val = #{value}.is_a?(Harray) ? value.decode : value
val = value.is_a?(Harray) ? value.decode : value
{
template: Shotengai::Harray.encode(#{template}).keys,
value: val,
......
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