lib/faml/static_hash_parser.rb in faml-0.6.1 vs lib/faml/static_hash_parser.rb in faml-0.6.2
- old
+ new
@@ -127,17 +127,10 @@
end
set_static_attribute(key_static, arr)
end
def set_static_attribute(key, val)
- case key.to_s
- when 'id', 'class'
- @static_attributes[key] ||= []
- @static_attributes[key].concat(Array(val))
- else
- @static_attributes[key] = val
- end
- val
+ @static_attributes[key] = val
end
def set_dynamic_attributes(key, val)
if SPECIAL_ATTRIBUTES.include?(key.to_s)
throw FAILURE_TAG