lib/ProMotion/screen_helpers/screen_navigation.rb in ProMotion-0.7.2 vs lib/ProMotion/screen_helpers/screen_navigation.rb in ProMotion-0.7.3
- old
+ new
@@ -48,9 +48,10 @@
UIApplication.sharedApplication.delegate
end
def close_screen(args = {})
args ||= {}
+ args = { sender: args } unless args.is_a?(Hash)
args[:animated] ||= true
if self.modal?
close_modal_screen args