Skip to content

Commit 43e813f

Browse files
jkeenrichmolj
authored andcommitted
Prefer #update over #update_attributes, as that's the newer Rails way and rubocop loves to auto-correct graphiti into a broken state without this
1 parent 5d1dac3 commit 43e813f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/graphiti/resource_proxy.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,13 @@ def destroy
153153
success
154154
end
155155

156-
def update_attributes
156+
def update
157157
data
158158
save(action: :update)
159159
end
160160

161+
alias update_attributes update
162+
161163
def include_hash
162164
@include_hash ||= begin
163165
base = @payload ? @payload.include_hash : {}

0 commit comments

Comments
 (0)