Sha256: dd29e9487320ffc350e6ccef2430d05c12cf7c27b38808614bdb34ad9ded61c7

Contents?: true

Size: 365 Bytes

Versions: 34

Compression:

Stored size: 365 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Messaging
    # A form object to be used when sending a message
    class MessageForm < Decidim::Form
      mimic :message

      attribute :body, Decidim::Attributes::CleanString

      validates :body, presence: true, length: { maximum: Decidim.config.maximum_conversation_message_length }
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
decidim-core-0.29.1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.28.4 app/forms/decidim/messaging/message_form.rb
decidim-core-0.27.9 app/forms/decidim/messaging/message_form.rb
decidim-core-0.29.0 app/forms/decidim/messaging/message_form.rb
decidim-core-0.28.3 app/forms/decidim/messaging/message_form.rb
decidim-core-0.27.8 app/forms/decidim/messaging/message_form.rb
decidim-core-0.29.0.rc4 app/forms/decidim/messaging/message_form.rb
decidim-core-0.29.0.rc3 app/forms/decidim/messaging/message_form.rb
decidim-core-0.29.0.rc2 app/forms/decidim/messaging/message_form.rb
decidim-core-0.29.0.rc1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.28.2 app/forms/decidim/messaging/message_form.rb
decidim-core-0.27.7 app/forms/decidim/messaging/message_form.rb
decidim-core-0.28.1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.27.6 app/forms/decidim/messaging/message_form.rb
decidim-core-0.26.10 app/forms/decidim/messaging/message_form.rb
decidim-core-0.26.9 app/forms/decidim/messaging/message_form.rb
decidim-core-0.28.0 app/forms/decidim/messaging/message_form.rb
decidim-core-0.27.5 app/forms/decidim/messaging/message_form.rb
decidim-core-0.28.0.rc5 app/forms/decidim/messaging/message_form.rb
decidim-core-0.28.0.rc4 app/forms/decidim/messaging/message_form.rb