Sha256: ce25d4dbc5859cf97af3746a2436e50b3e66e1cad1bdc31b30d801d747305897

Contents?: true

Size: 434 Bytes

Versions: 6

Compression:

Stored size: 434 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module EnhancedTextwork
    # A module with all the gallery common methods for paragraphs
    # 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

6 entries across 6 versions & 1 rubygems

Version Path
decidim-enhanced_textwork-1.0.5 app/commands/decidim/enhanced_textwork/gallery_methods.rb
decidim-enhanced_textwork-1.0.4 app/commands/decidim/enhanced_textwork/gallery_methods.rb
decidim-enhanced_textwork-1.0.3 app/commands/decidim/enhanced_textwork/gallery_methods.rb
decidim-enhanced_textwork-1.0.2 app/commands/decidim/enhanced_textwork/gallery_methods.rb
decidim-enhanced_textwork-1.0.1 app/commands/decidim/enhanced_textwork/gallery_methods.rb
decidim-enhanced_textwork-1.0.0 app/commands/decidim/enhanced_textwork/gallery_methods.rb