Class: Cmsimple::Path::Redirect
- Inherits:
-
Object
- Object
- Cmsimple::Path::Redirect
- Defined in:
- app/models/cmsimple/path.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ Redirect
constructor
A new instance of Redirect.
- #uri ⇒ Object
Constructor Details
#initialize(path) ⇒ Redirect
Returns a new instance of Redirect.
66 67 68 |
# File 'app/models/cmsimple/path.rb', line 66 def initialize(path) @path = path end |
Instance Method Details
#uri ⇒ Object
70 71 72 |
# File 'app/models/cmsimple/path.rb', line 70 def uri @path.page.try(:uri).presence || @path.redirect_uri end |