lib/ProMotion/classes/TableScreen.rb in ProMotion-0.1.1 vs lib/ProMotion/classes/TableScreen.rb in ProMotion-0.1.2
- old
+ new
@@ -7,15 +7,20 @@
def view
return self.view_controller.view
end
def load_view_controller
- Console.log("- table_data method needed in table view screen.", withColor: Console::RED_COLOR) unless self.respond_to? :table_data
+ check_table_data_method
+
self.view_controller ||= TableViewController
self.view_controller.view = self.createTableViewFromData(self.table_data)
if self.class.get_searchable
self.makeSearchable(contentController: self.view_controller, searchBar: self.class.get_searchable_params)
end
+ end
+
+ def check_table_data_method
+ Console.log("- table_data method needed in table view screen.", withColor: Console::RED_COLOR) unless self.respond_to? :table_data
end
def update_table_data
self.updateTableViewData(table_data)
end
\ No newline at end of file