Sha256: dc1dc08a332f3454efb8ee8b25e33571cb49ea0eab62276f0e8bd20abf571ecd

Contents?: true

Size: 426 Bytes

Versions: 59

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Proposals
    # A module with all the gallery common methods for proposals
    # and collaborative draft commands.
    # Allows to create several image attachments at once
    module GalleryMethods
      include ::Decidim::GalleryMethods

      private

      def gallery_allowed?
        @form.current_component.settings.attachments_allowed?
      end
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
decidim-proposals-0.29.1 app/commands/decidim/proposals/gallery_methods.rb
decidim-proposals-0.28.4 app/commands/decidim/proposals/gallery_methods.rb
decidim-proposals-0.27.9 app/commands/decidim/proposals/gallery_methods.rb
decidim-proposals-0.29.0 app/commands/decidim/proposals/gallery_methods.rb
decidim-proposals-0.28.3 app/commands/decidim/proposals/gallery_methods.rb
decidim-proposals-0.27.8 app/commands/decidim/proposals/gallery_methods.rb
decidim-proposals-0.29.0.rc4 app/commands/decidim/proposals/gallery_methods.rb
decidim-proposals-0.29.0.rc3 app/commands/decidim/proposals/gallery_methods.rb
decidim-proposals-0.29.0.rc2 app/commands/decidim/proposals/gallery_methods.rb
decidim-proposals-0.29.0.rc1 app/commands/decidim/proposals/gallery_methods.rb
decidim-proposals-0.28.2 app/commands/decidim/proposals/gallery_methods.rb
decidim-proposals-0.27.7 app/commands/decidim/proposals/gallery_methods.rb
decidim-proposals-0.28.1 app/commands/decidim/proposals/gallery_methods.rb
decidim-proposals-0.27.6 app/commands/decidim/proposals/gallery_methods.rb
decidim-proposals-0.26.10 app/commands/decidim/proposals/gallery_methods.rb
decidim-proposals-0.26.9 app/commands/decidim/proposals/gallery_methods.rb
decidim-proposals-0.28.0 app/commands/decidim/proposals/gallery_methods.rb
decidim-proposals-0.27.5 app/commands/decidim/proposals/gallery_methods.rb
decidim-proposals-0.28.0.rc5 app/commands/decidim/proposals/gallery_methods.rb
decidim-proposals-0.28.0.rc4 app/commands/decidim/proposals/gallery_methods.rb