lib/ProMotion/table/data/table_data.rb in ProMotion-2.8.0 vs lib/ProMotion/table/data/table_data.rb in ProMotion-2.8.1
- old
+ new
@@ -57,11 +57,16 @@
def filtered?
@filtered == true
end
+ def search_string
+ @search_string ||= nil
+ end
+
def search(search_string)
@filtered = true
+ @search_string = search_string
self.filtered_data = []
self.data.compact.each do |section|
new_section = {}