Module: CoreHelper

Defined in:
app/helpers/core_helper.rb

Instance Method Summary collapse

Instance Method Details

#app_emailObject



7
8
9
# File 'app/helpers/core_helper.rb', line 7

def app_email
  "[email protected]"
end

#app_titleObject



3
4
5
# File 'app/helpers/core_helper.rb', line 3

def app_title
  "Default App Title"
end

#title_separatorObject



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(strip_tags(content), :length => length, :omission => '... ')
end