lib/prolog/services/replace_content.rb in prolog-services-replace_content-0.1.2 vs lib/prolog/services/replace_content.rb in prolog-services-replace_content-0.1.3

- old
+ new

@@ -22,14 +22,15 @@ end def convert validate return false unless valid? + set_converted_content valid? end - # rubocop:enable Metrics/AbcSize, Metrics/MethodLength + # rubocop:enable def converted_content errors[:conversion] = ['not called'] unless @content_after_conversion @content_after_conversion || :oops end @@ -102,10 +103,10 @@ errors[error_key] = ['invalid'] false end def _invalidate_endpoints - errors[:endpoints] = %w(invalid) + errors[:endpoints] = %w[invalid] false end def validate_endpoints parse_with_comments