Class: C::PageInfo
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- C::PageInfo
- Defined in:
- app/models/c/page_info.rb
Instance Method Summary collapse
Instance Method Details
permalink #fallback_title ⇒ Object
[View source]
6 7 8 9 10 11 12 13 14 |
# File 'app/models/c/page_info.rb', line 6 def fallback_title if (name = page.try(:name)) "#{name} | #{C.store_name}" else C.store_name end rescue '' end |