Sha256: 8a30f1081938fe7342fcf3a94881d7bc77251ca3f0920fdbf924bbab25f931d7

Contents?: true

Size: 456 Bytes

Versions: 52

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true

require "active_support/concern"

module Decidim
  # A controller concern to enable withawing the controller resources. Only
  # affects the UI, so the actual logic to withdraw the resource will still need
  # to be implemented.
  module Withdrawable
    extend ActiveSupport::Concern

    included do
      helper_method :withdrawable_controller?

      def withdrawable_controller?
        true
      end
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
decidim-core-0.28.4 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.27.9 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.28.3 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.27.8 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.28.2 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.27.7 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.28.1 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.27.6 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.26.10 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.26.9 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.28.0 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.27.5 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.28.0.rc5 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.28.0.rc4 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.26.8 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.27.4 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.27.3 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.26.7 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.26.5 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.27.2 app/controllers/concerns/decidim/withdrawable.rb