Class: SolidusLegacyPromotions::Configuration
- Inherits:
-
Spree::Preferences::Configuration
- Object
- Spree::Preferences::Configuration
- SolidusLegacyPromotions::Configuration
- Includes:
- Spree::Core::EnvironmentExtension
- Defined in:
- lib/solidus_legacy_promotions/configuration.rb
Instance Attribute Summary collapse
-
#advertiser_class ⇒ Class
Allows providing a different promotion advertiser.
-
#coupon_code_handler_class ⇒ Class
Allows providing a different coupon code handler.
-
#promotion_attributes ⇒ Array<Symbol>
Attributes to be returned by the API for a promotion.
-
#promotion_code_batch_mailer_class ⇒ ActionMailer::Base
Allows providing your own Mailer for promotion code batch mailer.
-
#promotions_per_page ⇒ Integer
Promotions to show per-page in the admin (default:
15
). -
#shipping_promotion_handler_class ⇒ Class
Allows providing a different shipping promotion handler.
Instance Attribute Details
#advertiser_class ⇒ Class
Allows providing a different promotion advertiser.
65 |
# File 'lib/solidus_legacy_promotions/configuration.rb', line 65 class_name_attribute :advertiser_class, default: 'Spree::PromotionAdvertiser' |
#coupon_code_handler_class ⇒ Class
Allows providing a different coupon code handler.
57 |
# File 'lib/solidus_legacy_promotions/configuration.rb', line 57 class_name_attribute :coupon_code_handler_class, default: 'Spree::PromotionHandler::Coupon' |
#promotion_attributes ⇒ Array<Symbol>
Returns Attributes to be returned by the API for a promotion.
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/solidus_legacy_promotions/configuration.rb', line 13 preference :promotion_api_attributes, :array, default: [ :id, :name, :description, :expires_at, :starts_at, :type, :usage_limit, :advertise, :path ] |
#promotion_code_batch_mailer_class ⇒ ActionMailer::Base
Allows providing your own Mailer for promotion code batch mailer.
49 |
# File 'lib/solidus_legacy_promotions/configuration.rb', line 49 class_name_attribute :promotion_code_batch_mailer_class, default: 'Spree::PromotionCodeBatchMailer' |
#promotions_per_page ⇒ Integer
Returns Promotions to show per-page in the admin (default: 15
).
9 |
# File 'lib/solidus_legacy_promotions/configuration.rb', line 9 preference :promotions_per_page, :integer, default: 15 |
#shipping_promotion_handler_class ⇒ Class
Allows providing a different shipping promotion handler.
40 |
# File 'lib/solidus_legacy_promotions/configuration.rb', line 40 class_name_attribute :shipping_promotion_handler_class, default: 'Spree::PromotionHandler::Shipping' |