Sha256: ac4640a092bc0f989c8dde4c72db43adba4bd02c5d39c6483a76e15c3f654d75

Contents?: true

Size: 179 Bytes

Versions: 19

Compression:

Stored size: 179 Bytes

Contents

class ContentTextDecorator < ApplicationDecorator
  delegate_all

  def render
    content.to_s.html_safe
  end

  def content_type_is?(value)
    value.to_sym == :text
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
udongo-5.7.0 app/decorators/content_text_decorator.rb
udongo-5.6.0 app/decorators/content_text_decorator.rb
udongo-5.5.0 app/decorators/content_text_decorator.rb
udongo-5.4.0 app/decorators/content_text_decorator.rb
udongo-5.3.1 app/decorators/content_text_decorator.rb
udongo-5.3.0 app/decorators/content_text_decorator.rb
udongo-5.2.0 app/decorators/content_text_decorator.rb
udongo-5.1.0 app/decorators/content_text_decorator.rb
udongo-5.0.2 app/decorators/content_text_decorator.rb
udongo-5.0.1 app/decorators/content_text_decorator.rb
udongo-5.0.0 app/decorators/content_text_decorator.rb
udongo-4.0.0 app/decorators/content_text_decorator.rb
udongo-3.0.0 app/decorators/content_text_decorator.rb
udongo-2.0.4 app/decorators/content_text_decorator.rb
udongo-2.0.3 app/decorators/content_text_decorator.rb
udongo-2.0.2 app/decorators/content_text_decorator.rb
udongo-2.0.1 app/decorators/content_text_decorator.rb
udongo-2.0.0 app/decorators/content_text_decorator.rb
udongo-1.0.4 app/decorators/content_text_decorator.rb