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.16.0 app/forms/decidim/messaging/message_form.rb
decidim-core-0.15.2 app/forms/decidim/messaging/message_form.rb
decidim-core-0.15.1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.15.0 app/forms/decidim/messaging/message_form.rb
decidim-core-0.14.4 app/forms/decidim/messaging/message_form.rb
decidim-core-0.14.3 app/forms/decidim/messaging/message_form.rb
decidim-core-0.14.2 app/forms/decidim/messaging/message_form.rb
decidim-core-0.14.1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.13.1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.12.2 app/forms/decidim/messaging/message_form.rb
decidim-core-0.13.0 app/forms/decidim/messaging/message_form.rb
decidim-core-0.12.1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.13.0.pre1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.12.0 app/forms/decidim/messaging/message_form.rb
decidim-core-0.11.2 app/forms/decidim/messaging/message_form.rb
decidim-core-0.12.0.pre app/forms/decidim/messaging/message_form.rb
decidim-core-0.11.1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.11.0.pre1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.10.1 app/forms/decidim/messaging/message_form.rb
decidim-core-0.10.0 app/forms/decidim/messaging/message_form.rb