Sha256: d01d24fc26bc72a5e6e0838a45811568c987b7aa17d13cba0fd3d725e00ad3da

Contents?: true

Size: 330 Bytes

Versions: 8

Compression:

Stored size: 330 Bytes

Contents

# frozen_string_literal: true

module SolidusPrototypes
  module Spree
    module PermissionSets
      module ProductDisplayDecorator

        def activate!
          super
          can [:display, :admin], ::Spree::Prototype
        end

        ::Spree::PermissionSets::ProductDisplay.prepend self
      end
    end
  end
end


Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
solidus_prototypes-1.6.0 app/decorators/models/solidus_prototypes/spree/permission_sets/product_display_decorator.rb
solidus_prototypes-1.5.1 app/decorators/models/solidus_prototypes/spree/permission_sets/product_display_decorator.rb
solidus_prototypes-1.5.0 app/decorators/models/solidus_prototypes/spree/permission_sets/product_display_decorator.rb
solidus_prototypes-1.4.0 app/decorators/models/solidus_prototypes/spree/permission_sets/product_display_decorator.rb
solidus_prototypes-1.3.0 app/decorators/models/solidus_prototypes/spree/permission_sets/product_display_decorator.rb
solidus_prototypes-1.2.0 app/decorators/models/solidus_prototypes/spree/permission_sets/product_display_decorator.rb
solidus_prototypes-1.1.1 app/decorators/models/solidus_prototypes/spree/permission_sets/product_display_decorator.rb
solidus_prototypes-1.1.0 app/decorators/models/solidus_prototypes/spree/permission_sets/product_display_decorator.rb