Skip to content

Commit

Permalink
Revert "Handle permalink attribute on product create"
Browse files Browse the repository at this point in the history
This reverts commit bb43652.
  • Loading branch information
nandita2010 committed Apr 19, 2021
1 parent bb43652 commit 4ab4c66
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
9 changes: 0 additions & 9 deletions api/spec/requests/spree/api/products_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,6 @@ module Spree
end

it_behaves_like "modifying product actions are restricted"

context "passes permalink attribute on product create" do
let!(:product_with_permalink) { create(:product, permalink: nil) }

it "successfully creates a product" do
get spree.new_api_product_path
expect(response.status).to eq(200)
end
end
end

context "as an admin" do
Expand Down
2 changes: 0 additions & 2 deletions core/app/models/spree/product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ class Product < Spree::Base
extend FriendlyId
friendly_id :slug_candidates, use: :history

attr_writer :permalink

include Spree::SoftDeletable

after_discard do
Expand Down

0 comments on commit 4ab4c66

Please sign in to comment.