diff --git a/lib/common/models/wp_item/findable.rb b/lib/common/models/wp_item/findable.rb index 4d440bff..476b8cac 100755 --- a/lib/common/models/wp_item/findable.rb +++ b/lib/common/models/wp_item/findable.rb @@ -3,6 +3,11 @@ class WpItem attr_reader :found_from + # Sets the found_from attribute + # + # @param [ String ] method The method which found the WpItem + # + # @return [ void ] def found_from=(method) found = method[%r{find_from_(.*)}, 1] @found_from = found.gsub('_', ' ') if found