Sha256: 239b5b0aa2d8208604f2a170b6344f2052d27f88277c5d5c5775ff7539e5c574

Contents?: true

Size: 458 Bytes

Versions: 7

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: true

require "active_support/concern"

module Decidim
  # A controller concern to enable withdrawing 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

7 entries across 7 versions & 1 rubygems

Version Path
decidim-core-0.29.2 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.29.1 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.29.0 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.29.0.rc4 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.29.0.rc3 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.29.0.rc2 app/controllers/concerns/decidim/withdrawable.rb
decidim-core-0.29.0.rc1 app/controllers/concerns/decidim/withdrawable.rb