lib/ios/sugarcube-factories/uialertcontroller.rb in sugarcube-2.4.2 vs lib/ios/sugarcube-factories/uialertcontroller.rb in sugarcube-2.5.0

- old
+ new

@@ -1,7 +1,6 @@ class UIAlertController - attr_accessor :sugarcube_handler # @example # UIAlertController.alert(controller, "title", # message: "help!", @@ -10,10 +9,10 @@ def self.alert(controller, title, options={}, more_options={}, &block) if title.is_a?(NSDictionary) options = title title = options[:title] message = options[:message] - elsif options.is_a? String + elsif options.is_a?(String) message = options options = more_options else message = options[:message] end