noesya/osuny

View on GitHub
app/models/communication/block/component/string.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
80%
class Communication::Block::Component::String < Communication::Block::Component::Base

  def data=(value)
    @data = Osuny::Sanitizer.sanitize value, 'string'
  end

  def full_text
    data
  end

end