Sha256: 079176424868aacd36b9b557a6876a9159fd77c5153cafd87ef036184eaddf06

Contents?: true

Size: 275 Bytes

Versions: 67

Compression:

Stored size: 275 Bytes

Contents

class SnippetDecorator < ApplicationDecorator
  def title
    string = object.title.to_s
    object.allow_html_in_title? ? string.html_safe : string
  end

  def content
    string = object.content.to_s
    object.allow_html_in_content? ? string.html_safe : string
  end
end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
udongo-7.9.0 app/decorators/snippet_decorator.rb
udongo-7.8.1 app/decorators/snippet_decorator.rb
udongo-7.8.0 app/decorators/snippet_decorator.rb
udongo-7.7.2 app/decorators/snippet_decorator.rb
udongo-7.7.1 app/decorators/snippet_decorator.rb
udongo-7.7.0 app/decorators/snippet_decorator.rb
udongo-7.6.2 app/decorators/snippet_decorator.rb
udongo-7.6.1 app/decorators/snippet_decorator.rb
udongo-7.6.0 app/decorators/snippet_decorator.rb
udongo-7.5.1 app/decorators/snippet_decorator.rb
udongo-7.5.0 app/decorators/snippet_decorator.rb
udongo-7.4.2 app/decorators/snippet_decorator.rb
udongo-7.4.1 app/decorators/snippet_decorator.rb
udongo-7.4.0 app/decorators/snippet_decorator.rb
udongo-7.3.5 app/decorators/snippet_decorator.rb
udongo-7.3.4 app/decorators/snippet_decorator.rb
udongo-7.3.3 app/decorators/snippet_decorator.rb
udongo-7.3.2 app/decorators/snippet_decorator.rb
udongo-7.3.1 app/decorators/snippet_decorator.rb
udongo-7.2.1 app/decorators/snippet_decorator.rb