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

Refactor some code to remove warnings #46

Open
softr8 opened this issue May 7, 2020 · 2 comments
Open

Refactor some code to remove warnings #46

softr8 opened this issue May 7, 2020 · 2 comments
Labels
pinned Should not be marked as stale

Comments

@softr8
Copy link

softr8 commented May 7, 2020

price_in

Spree::Price#price_in will be removed from Solidus 3.0, and variant_decorator uses it throwing the following warning:

DEPRECATION WARNING: price_in is deprecated and will be removed from Solidus 3.0 (use price_for instead) (called from active_sale_in at /.../solidus_sale_prices/app/decorators/models/solidus_sale_prices/spree/variant_decorator.rb:26)

Price_on requires pricing options, not sure how to get the params required, maybe:

def active_sale_in(currency)
  price_for(Spree::Config.pricing_options_class.new(currency: currency))
end

discard

Spree::Price.with_deleted has been deprecated. Use Spree::Price.with_discarded instead. app/models/spree/sale_price.rb:6

@softr8 softr8 changed the title Refactor variant decorator to remove warnings Refactor some code to remove warnings May 7, 2020
@stale
Copy link

stale bot commented Jul 6, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 6, 2020
@stale stale bot closed this as completed Jul 13, 2020
@jarednorman jarednorman reopened this Jul 14, 2020
@stale stale bot removed the wontfix label Jul 14, 2020
@stale
Copy link

stale bot commented Sep 12, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Sep 12, 2020
@jarednorman jarednorman added pinned Should not be marked as stale and removed wontfix labels Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pinned Should not be marked as stale
Projects
None yet
Development

No branches or pull requests

2 participants