lib/faml/attribute_optimizer.rb in faml-0.6.4 vs lib/faml/attribute_optimizer.rb in faml-0.6.5
- old
+ new
@@ -57,13 +57,12 @@
def build_optimized_dynamic_attributes(parser, static_attributes)
dynamic_attributes = {}
parser.dynamic_attributes.each do |k, v|
k = k.to_s
if static_attributes.key?(k)
- if StaticHashParser::SPECIAL_ATTRIBUTES.include?(k)
- # XXX: Quit optimization
- return nil
- end
+ # XXX: Quit optimization.
+ # See also https://github.com/eagletmt/faml/issues/44
+ return nil
end
dynamic_attributes[k] = v
end
dynamic_attributes
end