Class: PresentModalController
- Inherits:
-
UIViewController
- Object
- UIViewController
- PresentModalController
- Defined in:
- app/controllers/present_modal_controller.rb
Instance Attribute Summary collapse
-
#modal ⇒ Object
readonly
Returns the value of attribute modal.
Instance Method Summary collapse
Methods inherited from UIViewController
#auto, #autorotateMask, #autorotateToOrientation, layout, #layoutDidLoad, stylesheet, #stylesheet=, #top_level_view, #viewDidLoad, #willAnimateRotationToInterfaceOrientation
Methods included from Teacup::Layout
#layout, #stylesheet, #stylesheet=, #subview
Instance Attribute Details
#modal ⇒ Object (readonly)
Returns the value of attribute modal.
2 3 4 |
# File 'app/controllers/present_modal_controller.rb', line 2 def modal @modal end |
Instance Method Details
#open_modal_button ⇒ Object
11 12 13 14 |
# File 'app/controllers/present_modal_controller.rb', line 11 def @modal = ConstraintsController.new self.presentViewController(@modal, animated:true, completion:nil) end |