Module: ScopedHelper
- Defined in:
- app/helpers/scoped_helper.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/helpers/scoped_helper.rb', line 2 def self.included(base) base.module_eval do def title t = current_site.name t = TrustyCms::Config['admin.title'] || 'TrustyCMS' if t.blank? t end def subtitle st = current_site.subtitle st = TrustyCms::Config['admin.subtitle'] || 'publishing for small teams' if st.blank? st end end end |