Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix class definition of variant #2248

Merged
merged 1 commit into from
Oct 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/app/models/spree/variant/price_selector.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Spree
class Variant
class Variant < Spree::Base
# This class is responsible for selecting a price for a variant given certain pricing options.
# A variant can have multiple or even dynamic prices. The `price_for`
# method determines which price applies under the given circumstances.
Expand Down
2 changes: 1 addition & 1 deletion core/app/models/spree/variant/pricing_options.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Spree
class Variant
class Variant < Spree::Base
# Instances of this class represent the set of circumstances that influence how expensive a
# variant is. For this particular pricing options class, country_iso and currency influence
# the price of a variant.
Expand Down
2 changes: 1 addition & 1 deletion core/app/models/spree/variant/vat_price_generator.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Spree
class Variant
class Variant < Spree::Base
# This class generates gross prices for all countries that have VAT configured.
# The prices will include their respective VAT rates. It will also generate an
# export (net) price for any country that doesn't have VAT.
Expand Down