Sha256: 01d0903073d22fa97ab20bfca7ce1fe53042eb847f1230eb585e1175df8c7093
Contents?: true
Size: 753 Bytes
Versions: 5
Compression:
Stored size: 753 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Examples module Rails class Gemfile module Services class MergeSections include RailsService::Config attribute :header, :string attribute :body, :string validates :header, presence: true if ConvenientService::Dependencies.support_has_j_send_result_params_validations_using_active_model_validations? validates :body, presence: true if ConvenientService::Dependencies.support_has_j_send_result_params_validations_using_active_model_validations? def result success(merged_sections: "#{header}\n#{body}") end end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems