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
#autorotateMask, #autorotateToOrientation, #top_level_view, #viewDidLoad, #willAnimateRotationToInterfaceOrientation
Methods included from Teacup::Controller
included, #layoutDidLoad, #stylesheet=, #teacupDidLoad
Methods included from Teacup::Layout
#auto, included, #layout, #stylesheet, #stylesheet=, #subview, #top_level_view
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 |