Skip to content

Commit

Permalink
fix ParseResource::Base#save so callbacks run
Browse files Browse the repository at this point in the history
this was preventing an `after_save` hook from running

ref: adelevie#125

GFM-303 #time 30m
  • Loading branch information
kranzky committed Aug 19, 2015
1 parent 1207963 commit 783d687
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/parse_resource/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,9 @@ def save
if valid?
run_callbacks :save do
if new?
return create
create
else
return update
update
end
end
else
Expand Down

0 comments on commit 783d687

Please sign in to comment.