Class: Page
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Page
- Defined in:
- app/models/page.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Page
constructor
A new instance of Page.
- #link ⇒ Object
Constructor Details
Instance Method Details
#link ⇒ Object
20 21 22 |
# File 'app/models/page.rb', line 20 def link foreign_link.blank? ? slug_link : foreign_link end |