Module: Concen::ApplicationHelper

Defined in:
app/helpers/concen/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#one_line(&block) ⇒ Object

Remove all the new lines from the output. This is very useful when used for inline-block elements, because white spaces will transform into extra gaps between element.



6
7
8
# File 'app/helpers/concen/application_helper.rb', line 6

def one_line(&block)
  (capture_haml(&block).gsub("\n", '')).html_safe
end