lib/ProMotion/table/extensions/refreshable.rb in ProMotion-1.2.1 vs lib/ProMotion/table/extensions/refreshable.rb in ProMotion-2.0.0.rc1
- old
+ new
@@ -1,7 +1,8 @@
module ProMotion
module Table
module Refreshable
+
def make_refreshable(params={})
pull_message = params[:pull_message] || "Pull to refresh"
@refreshing = params[:refreshing] || "Refreshing data..."
@updated_format = params[:updated_format] || "Last updated at %s"
@updated_time_format = params[:updated_time_format] || "%l:%M %p"