-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Rename method_type into partial_name #1978
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve, this makes the purpose of this method much more clear. Needs a rebase for the Changelog though. :)
a3e8b31
to
5675a46
Compare
@@ -2,7 +2,7 @@ object @order | |||
extends "spree/api/orders/order" | |||
|
|||
child :available_payment_methods => :payment_methods do | |||
attributes :id, :name, :method_type | |||
attributes :id, :name, :partial_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably want to keep the old field around (until the next major version)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean additionally? Yes, this is a good idea
5675a46
to
ae0da86
Compare
@jhawthorn rebased on master and re-added the |
@tvdeyen can we get a rebase on this? |
PaymentMethod#method_type is a confusing name for a method returning the name of the partial to use. As we cannot use `to_partial_path` (we use it in four different places), we use `partial_name` as more descriptive name.
ae0da86
to
a6f92e6
Compare
@gmacdougall done |
PaymentMethod#method_type
is a confusing name for a method returning the name of the partial to use.As we cannot use
to_partial_path
(we use it in four different places), we usepartial_name
as more descriptive name.This removes the key from the
/api/orders/:id
API (How ever this landed up there). As I can't imagine a good approach for deprecating API keys renaming is the only option I have.