spec/spec_helper.rb in elasticsearch_autocomplete-0.1.3 vs spec/spec_helper.rb in elasticsearch_autocomplete-0.1.4
- old
+ new
@@ -36,17 +36,14 @@
def persisted?
true
end
def save
- _run_save_callbacks do
- end
+ run_callbacks(:save) {}
end
def destroy
- _run_destroy_callbacks do
- @destroyed = true
- end
+ run_callbacks(:destroy) { @destroyed = true }
end
def destroyed?
!!@destroyed
end