Sha256: 076459d19a1a191f23e25ee22de452fa5a2e56633da5ca42fb4119d55a42d345
Contents?: true
Size: 585 Bytes
Versions: 1
Compression:
Stored size: 585 Bytes
Contents
# frozen_string_literal: true module Account class NoteForm < ApplicationForm attribute :order_id, String attribute :content, String attribute :created_at, String attribute :id, String attribute :dom_id, String attribute :html_class, String validates :order_id, presence: true validates :content, presence: true, length: { maximum: 1000 } def submit return false unless valid? api_answer = TranslationCms::Api::Customers::Note.create(attributes) merge_responce! api_answer errors.empty? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/forms/account/note_form.rb |