Sha256: 71d69d82fd96818d649b5189db05a7c5329003a84d42e797a8748a771d4f573b

Contents?: true

Size: 342 Bytes

Versions: 2

Compression:

Stored size: 342 Bytes

Contents

# frozen_string_literal: true

class Admin::Tramway::News::NewsForm < ::Tramway::Core::ApplicationForm
  properties :title, :body, :published_at, :photo

  def initialize(object)
    form_object = super object
    form_properties title: :string,
                    body: :ckeditor,
                    photo: :file
    form_object
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tramway-news-1.0.5 app/forms/admin/tramway/news/news_form.rb
tramway-news-1.0.4.3 app/forms/admin/tramway/news/news_form.rb