Sha256: fa25c79557a012f7ddaa7492aabaed05d4cc3fe86f03805ce244bfeacbf32bbb

Contents?: true

Size: 292 Bytes

Versions: 16

Compression:

Stored size: 292 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
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
decidim-core-0.26.0 app/forms/decidim/messaging/message_form.rb
decidim-core-0.26.0.rc2 app/forms/decidim/messaging/message_form.rb
decidim-core-0.26.0.rc1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.25.2 app/forms/decidim/messaging/message_form.rb
decidim-core-0.25.1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.25.0 app/forms/decidim/messaging/message_form.rb
decidim-core-0.25.0.rc4 app/forms/decidim/messaging/message_form.rb
decidim-core-0.25.0.rc3 app/forms/decidim/messaging/message_form.rb
decidim-core-0.25.0.rc2 app/forms/decidim/messaging/message_form.rb
decidim-core-0.25.0.rc1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.24.3 app/forms/decidim/messaging/message_form.rb
decidim-core-0.24.2 app/forms/decidim/messaging/message_form.rb
decidim-core-0.24.1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.24.0 app/forms/decidim/messaging/message_form.rb
decidim-core-0.24.0.rc2 app/forms/decidim/messaging/message_form.rb
decidim-core-0.24.0.rc1 app/forms/decidim/messaging/message_form.rb