Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 629 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 629 Bytes

SpreePromotionRolesRule

This extension allows you to create promotions that are valid for a specific user-role.

Installation

Add spree_promotion_roles_rule to your Gemfile:

gem 'spree_promotion_roles_rule', github: 'traels/spree-promotion-roles-rule'

Add rule to config/initializers/spree.rb

Rails.application.config.spree.promotions.rules << RolesPromotionRule

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_promotion_roles_rule:install

Copyright (c) 2013 Træls, released under the New BSD License