Sha256: 445585db7ed133e3962bc42b0bf665de273a5ebf1dd48886ac6a000caace4982

Contents?: true

Size: 487 Bytes

Versions: 3

Compression:

Stored size: 487 Bytes

Contents

module ShopPackages
  module Controllers
    module DiscountsController
      
      def self.included(base)
        base.class_eval do
          
          def config_edit_with_packages
            config_edit_without_packages
            
            @buttons  << 'browse_packages'
            @parts    << 'packages'
            @popups   << 'browse_packages'
          end
          alias_method_chain :config_edit, :packages
          
        end
      end
      
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
radiant-shop_packages-extension-0.0.6 lib/shop_packages/controllers/discounts_controller.rb
radiant-shop_packages-extension-0.0.5 lib/shop_packages/controllers/discounts_controller.rb
radiant-shop_packages-extension-0.0.4 lib/shop_packages/controllers/discounts_controller.rb