Sha256: 5eb4bac4bbb7ca97aee79073760ed88cad1d05fa18520bc1b5866ae4aa65235e

Contents?: true

Size: 212 Bytes

Versions: 91

Compression:

Stored size: 212 Bytes

Contents

class Caboose::PageBlockRenderers::P
  def self.render(block, empty_text = nil)
    return (block.value.nil? || block.value == "") && empty_text ? "<p>#{empty_text}</p>"   : block.value                
  end
end

Version data entries

91 entries across 91 versions & 1 rubygems

Version Path
caboose-cms-0.3.25 app/models/caboose/page_block_renderers/p.rb
caboose-cms-0.3.24 app/models/caboose/page_block_renderers/p.rb
caboose-cms-0.3.23 app/models/caboose/page_block_renderers/p.rb
caboose-cms-0.3.22 app/models/caboose/page_block_renderers/p.rb
caboose-cms-0.3.20 app/models/caboose/page_block_renderers/p.rb
caboose-cms-0.3.19 app/models/caboose/page_block_renderers/p.rb
caboose-cms-0.3.17 app/models/caboose/page_block_renderers/p.rb
caboose-cms-0.3.16 app/models/caboose/page_block_renderers/p.rb
caboose-cms-0.3.15 app/models/caboose/page_block_renderers/p.rb
caboose-cms-0.3.14 app/models/caboose/page_block_renderers/p.rb
caboose-cms-0.3.13 app/models/caboose/page_block_renderers/p.rb