Sha256: b5f0564372621472230398918b7dce9acf09dc1986ec43cd48f715f360cb356a
Contents?: true
Size: 443 Bytes
Versions: 1
Compression:
Stored size: 443 Bytes
Contents
# frozen_string_literal: true class PaymentForm < ApplicationForm attribute :id, Integer attribute :currency, String attribute :payment_method_id, Integer # validations validates :id, presence: true validates :payment_method_id, presence: true, numericality: true def submit if valid? api_answer = TranslationCms::Api::Payment.update(attributes) merge_responce! api_answer end errors.empty? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/forms/payment_form.rb |