Sha256: 3a277e67adb636cbffcc83eb5f915e3ca124c91a850d9d807053502f576cee1a

Contents?: true

Size: 452 Bytes

Versions: 12

Compression:

Stored size: 452 Bytes

Contents

# frozen_string_literal: true

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

      attribute :file
      attribute :author_id, Integer
      attribute :path, String

      validates :author_id, presence: true
      validates :file, presence: true
      validates :file, passthru: { to: Decidim::DecidimAwesome::EditorImage }

      alias organization current_organization
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
decidim-decidim_awesome-0.10.3 app/forms/decidim/decidim_awesome/editor_image_form.rb
decidim-decidim_awesome-0.11.2 app/forms/decidim/decidim_awesome/editor_image_form.rb
decidim-decidim_awesome-0.11.1 app/forms/decidim/decidim_awesome/editor_image_form.rb
decidim-decidim_awesome-0.10.2 app/forms/decidim/decidim_awesome/editor_image_form.rb
decidim-decidim_awesome-0.10.1 app/forms/decidim/decidim_awesome/editor_image_form.rb
decidim-decidim_awesome-0.10.0 app/forms/decidim/decidim_awesome/editor_image_form.rb
decidim-decidim_awesome-0.9.3 app/forms/decidim/decidim_awesome/editor_image_form.rb
decidim-decidim_awesome-0.9.1 app/forms/decidim/decidim_awesome/editor_image_form.rb
decidim-decidim_awesome-0.8.3 app/forms/decidim/decidim_awesome/editor_image_form.rb
decidim-decidim_awesome-0.8.2 app/forms/decidim/decidim_awesome/editor_image_form.rb
decidim-decidim_awesome-0.8.1 app/forms/decidim/decidim_awesome/editor_image_form.rb
decidim-decidim_awesome-0.8.0 app/forms/decidim/decidim_awesome/editor_image_form.rb