Sha256: eed464114f79d80687ce40235512fd4efce952a8f968c8fbe31a11ab2780965e

Contents?: true

Size: 266 Bytes

Versions: 49

Compression:

Stored size: 266 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, String

      validates :body, presence: true
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
decidim-core-0.23.6 app/forms/decidim/messaging/message_form.rb
decidim-core-0.23.5 app/forms/decidim/messaging/message_form.rb
decidim-core-0.23.4 app/forms/decidim/messaging/message_form.rb
decidim-core-0.23.3 app/forms/decidim/messaging/message_form.rb
decidim-core-0.23.2 app/forms/decidim/messaging/message_form.rb
decidim-core-0.23.1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.23.1.rc1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.23.0 app/forms/decidim/messaging/message_form.rb
decidim-core-0.22.0 app/forms/decidim/messaging/message_form.rb
decidim-core-0.21.0 app/forms/decidim/messaging/message_form.rb
decidim-core-0.20.1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.20.0 app/forms/decidim/messaging/message_form.rb
decidim-core-0.19.1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.18.1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.19.0 app/forms/decidim/messaging/message_form.rb
decidim-core-0.17.2 app/forms/decidim/messaging/message_form.rb
decidim-core-0.18.0 app/forms/decidim/messaging/message_form.rb
decidim-core-0.17.1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.16.1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.17.0 app/forms/decidim/messaging/message_form.rb