Skip to content

Instantly share code, notes, and snippets.

View panoysia's full-sized avatar
😂

Elmer A. Sia panoysia

😂
View GitHub Profile

Rails

  1. Fix the following snippet. Given a collection of 1000 draft Articles, update all of them to be published

    Post.where(status: :draft).each { |p| p.update_attributes(status: :published}

Answers:

#1

{
"auto_complete_commit_on_tab": true,
"auto_id_class": true,
"binary_file_patterns":
[
"tmp/",
".keep",
".DS_Store"
],
"close_windows_when_empty": true,