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.26.8 app/forms/decidim/messaging/message_form.rb
decidim-core-0.27.4 app/forms/decidim/messaging/message_form.rb
decidim-core-0.27.3 app/forms/decidim/messaging/message_form.rb
decidim-core-0.26.7 app/forms/decidim/messaging/message_form.rb
decidim-core-0.26.5 app/forms/decidim/messaging/message_form.rb
decidim-core-0.27.2 app/forms/decidim/messaging/message_form.rb
decidim-core-0.27.1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.26.4 app/forms/decidim/messaging/message_form.rb
decidim-core-0.27.0 app/forms/decidim/messaging/message_form.rb
decidim-core-0.26.3 app/forms/decidim/messaging/message_form.rb
decidim-core-0.27.0.rc2 app/forms/decidim/messaging/message_form.rb
decidim-core-0.27.0.rc1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.26.2 app/forms/decidim/messaging/message_form.rb
decidim-core-0.26.1 app/forms/decidim/messaging/message_form.rb