WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit f73af14

Browse files
authored
Merge pull request #84 from AlchemyCMS/remove-element-from-ingredient
Remove element from IngredientSerializer
2 parents 2a9dac4 + 606acc1 commit f73af14

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
alchemy_branch:
1616
- 7.0-stable
1717
- 7.1-stable
18+
- 7.2-stable
1819
- main
1920
ruby:
20-
- "3.0"
2121
- "3.1"
2222
- "3.2"
2323
- "3.3"

lib/alchemy/json_api/ingredient_serializer.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ module Alchemy
44
module JsonApi
55
module IngredientSerializer
66
def self.included(klass)
7-
klass.has_one :element, record_type: :element, serializer: ::Alchemy::JsonApi::ElementSerializer
8-
97
klass.attributes(
108
:role,
119
:value,

lib/alchemy/json_api/test_support/ingredient_serializer_behaviour.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,4 @@
2626
end
2727
end
2828
end
29-
30-
describe "relationships" do
31-
subject { serializer.serializable_hash[:data][:relationships] }
32-
33-
it "has one element" do
34-
expect(subject[:element]).to eq(data: {id: ingredient.element_id.to_s, type: :element})
35-
end
36-
end
3729
end

0 commit comments

Comments
 (0)