lib/ProMotion/classes/TableScreen.rb in ProMotion-0.1.2 vs lib/ProMotion/classes/TableScreen.rb in ProMotion-0.2.0
- old
+ new
@@ -3,11 +3,11 @@
class TableScreen < Screen
include MotionTable::PlainTable
include MotionTable::SearchableTable
def view
- return self.view_controller.view
+ self.view_controller.view
end
def load_view_controller
check_table_data_method
@@ -17,10 +17,10 @@
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
+ 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