Class: Panko::Base
- Inherits:
-
Object
- Object
- Panko::Base
- Defined in:
- lib/panko/base.rb
Direct Known Subclasses
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object (private)
Delegate *_path to the controller.
23 24 25 26 27 28 29 |
# File 'lib/panko/base.rb', line 23 def method_missing(name, *args) if name.to_s.end_with?("_path") controller.public_send(name, *args) else super end end |
Instance Method Details
#build ⇒ Object
8 9 10 |
# File 'lib/panko/base.rb', line 8 def build add_root end |