Sha256: d0e26368f3a59f3e7415c045c601587a3cd2ba8538213589ce2ddb3bd2881bde

Contents?: true

Size: 324 Bytes

Versions: 13

Compression:

Stored size: 324 Bytes

Contents

module Concen
  module ApplicationHelper
    # 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.
    def one_line(&block)
      (capture_haml(&block).gsub("\n", '')).html_safe
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
concen-0.2.4 app/helpers/concen/application_helper.rb
concen-0.2.3 app/helpers/concen/application_helper.rb
concen-0.2.2 app/helpers/concen/application_helper.rb
concen-0.2.1 app/helpers/concen/application_helper.rb
concen-0.2.0 app/helpers/concen/application_helper.rb
concen-0.1.7 app/helpers/concen/application_helper.rb
concen-0.1.6 app/helpers/concen/application_helper.rb
concen-0.1.5 app/helpers/concen/application_helper.rb
concen-0.1.4 app/helpers/concen/application_helper.rb
concen-0.1.3 app/helpers/concen/application_helper.rb
concen-0.1.2 app/helpers/concen/application_helper.rb
concen-0.1.1 app/helpers/concen/application_helper.rb
concen-0.1 app/helpers/concen/application_helper.rb