Sha256: 6413dd27c540dc68a6faeea18b084c45e78c08f2df94d65a80ff867b3fbc423d

Contents?: true

Size: 166 Bytes

Versions: 9

Compression:

Stored size: 166 Bytes

Contents

module Viewable
  class TextPresenter < ViewablePresenter
    def html
      m.text.try(:html_safe)
    end

    def text
      h.strip_tags m.text
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_admin_cms-0.1.1 app/presenters/viewable/text_presenter.rb
rails_admin_cms-0.0.9 app/presenters/viewable/text_presenter.rb
rails_admin_cms-0.0.7 app/presenters/viewable/text_presenter.rb
rails_admin_cms-0.0.6 app/presenters/viewable/text_presenter.rb
rails_admin_cms-0.0.5 app/presenters/viewable/text_presenter.rb
rails_admin_cms-0.0.4 app/presenters/viewable/text_presenter.rb
rails_admin_cms-0.0.3 app/presenters/viewable/text_presenter.rb
rails_admin_cms-0.0.2 app/presenters/viewable/text_presenter.rb
rails_admin_cms-0.0.1 app/presenters/viewable/text_presenter.rb