Skip to content

Commit

Permalink
replace compact_blank with reject(&:blank?)
Browse files Browse the repository at this point in the history
  • Loading branch information
markburns committed Jul 7, 2024
1 parent 99f7019 commit 4169618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/interactify/dsl/unique_klass_name.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def for(namespace, prefix, camelize: true)
end

def name_with_suffix(namespace, prefix, suffix)
name = [prefix.to_s, suffix.to_s].compact_blank.join("_")
name = [prefix.to_s, suffix.to_s].reject(&:blank?).join("_")

return nil if namespace.const_defined?(name.to_sym)

Expand Down

0 comments on commit 4169618

Please sign in to comment.