Sha256: c6373964b558d1fd8e8d6eb5e991d9c046c141cb5b7e7160c38222654693669f

Contents?: true

Size: 376 Bytes

Versions: 9

Compression:

Stored size: 376 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module DecidimAwesome
    class EditorImageForm < Decidim::Form
      mimic :editor_image

      attribute :image
      attribute :author_id, Integer
      attribute :path, String

      validates :author_id, presence: true
      validates :image, presence: true

      alias organization current_organization
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-decidim_awesome-0.7.2 app/forms/decidim/decidim_awesome/editor_image_form.rb
decidim-decidim_awesome-0.7.0 app/forms/decidim/decidim_awesome/editor_image_form.rb
decidim-decidim_awesome-0.6.7 app/forms/decidim/decidim_awesome/editor_image_form.rb
decidim-decidim_awesome-0.6.6 app/forms/decidim/decidim_awesome/editor_image_form.rb
decidim-decidim_awesome-0.6.5 app/forms/decidim/decidim_awesome/editor_image_form.rb
decidim-decidim_awesome-0.6.4 app/forms/decidim/decidim_awesome/editor_image_form.rb
decidim-decidim_awesome-0.6.3 app/forms/decidim/decidim_awesome/editor_image_form.rb
decidim-decidim_awesome-0.6.2 app/forms/decidim/decidim_awesome/editor_image_form.rb
decidim-decidim_awesome-0.6.1 app/forms/decidim/decidim_awesome/editor_image_form.rb