lib/static_collection.rb in static_collection-0.3.0 vs lib/static_collection.rb in static_collection-0.3.1

- old
+ new

@@ -19,10 +19,10 @@ ) all.find { |instance| instance.send(attribute_name) == value } end define_singleton_method("find_all_by_#{attribute_name}") do |value| ActiveSupport::Deprecation.warn( - "find_all_by_#{attribute_name} is deprecated for StaticCollection, "\ + "find_all_by_#{attribute_name} is deprecated for StaticCollection, " \ "use where(#{attribute_name}: [value])", ) all.select { |instance| instance.send(attribute_name) == value } end