lib/heartml/fragment.rb in heartml-1.0.0.beta4 vs lib/heartml/fragment.rb in heartml-1.0.0.beta5

- old
+ new

@@ -36,11 +36,11 @@ params = v.split(";").map(&:strip) params.each do |param| new_key, v2 = param.split(":").map(&:strip) - v2 = new_key unless v2 + v2 ||= new_key new_attrs[new_key] = @component.evaluate_attribute_expression(attr, v2) end attrs.delete(k) end @@ -80,10 +80,10 @@ next if attribute_binding.method.receiver._check_stack(node) break unless attribute_binding.method.(attribute: attr_node, node: node) end rescue Exception => e # rubocop:disable Lint/RescueException - line_segments = [@component.class.heart_module, @component.class.line_number_of_node(attr_node)] + line_segments = [@component.class.heart_module, @component._line_number_of_node(attr_node)] raise e.class, e.message.lines.first, [line_segments.join(":"), *e.backtrace] end end end end