Module: CoreHelper
- Defined in:
- app/helpers/core_helper.rb
Instance Method Summary collapse
- #app_email ⇒ Object
- #app_title ⇒ Object
- #title_separator ⇒ Object
- #truncate_content(content, length = 300) ⇒ Object
Instance Method Details
#app_email ⇒ Object
7 8 9 |
# File 'app/helpers/core_helper.rb', line 7 def app_email "[email protected]" end |
#app_title ⇒ Object
3 4 5 |
# File 'app/helpers/core_helper.rb', line 3 def app_title "Default App Title" end |
#title_separator ⇒ Object
11 12 13 |
# File 'app/helpers/core_helper.rb', line 11 def title_separator "|" end |
#truncate_content(content, length = 300) ⇒ Object
15 16 17 |
# File 'app/helpers/core_helper.rb', line 15 def truncate_content(content, length=300) raw truncate((content), :length => length, :omission => '... ') end |