Sha256: 7bc0e47943d85c156dedbd88325387cfe370404d6c55cfb3059366cfc6e0cf3a

Contents?: true

Size: 340 Bytes

Versions: 29

Compression:

Stored size: 340 Bytes

Contents

module Formize
  module Helpers
    module TagHelper

      # Permits to use content_tag in helpers using string concatenation
      def hard_content_tag(name, options={}, escape=true, &block)
        content = ''
        yield content
        return content_tag(name, content.html_safe, options, escape)
      end      

    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
formize-1.1.3 lib/formize/helpers/tag_helper.rb
formize-2.1.0 lib/formize/helpers/tag_helper.rb
formize-2.0.1 lib/formize/helpers/tag_helper.rb
formize-2.0.0 lib/formize/helpers/tag_helper.rb
formize-1.1.2 lib/formize/helpers/tag_helper.rb
formize-1.1.1 lib/formize/helpers/tag_helper.rb
formize-1.1.0 lib/formize/helpers/tag_helper.rb
formize-1.0.4 lib/formize/helpers/tag_helper.rb
formize-1.0.3 lib/formize/helpers/tag_helper.rb
formize-1.0.2 lib/formize/helpers/tag_helper.rb
formize-1.0.1 lib/formize/helpers/tag_helper.rb
formize-1.0.0 lib/formize/helpers/tag_helper.rb
formize-0.1.1 lib/formize/helpers/tag_helper.rb
formize-0.1.0 lib/formize/helpers/tag_helper.rb
formize-0.0.27 lib/formize/helpers/tag_helper.rb
formize-0.0.26 lib/formize/helpers/tag_helper.rb
formize-0.0.25 lib/formize/helpers/tag_helper.rb
formize-0.0.24 lib/formize/helpers/tag_helper.rb
formize-0.0.23 lib/formize/helpers/tag_helper.rb
formize-0.0.22 lib/formize/helpers/tag_helper.rb