diff --git a/lib/obscenity.rb b/lib/obscenity.rb index 071add5..bc4ecdb 100644 --- a/lib/obscenity.rb +++ b/lib/obscenity.rb @@ -1,3 +1,4 @@ +require 'psych' require 'obscenity/error' require 'obscenity/config' require 'obscenity/base' diff --git a/lib/obscenity/base.rb b/lib/obscenity/base.rb index 44063c7..be7be64 100644 --- a/lib/obscenity/base.rb +++ b/lib/obscenity/base.rb @@ -64,7 +64,7 @@ def replace(word) def set_list_content(list) case list when Array then list - when String, Pathname then YAML.load_file( list.to_s ) + when String, Pathname then Psych.load_file( list.to_s ) else [] end end