Skip to content

Instantly share code, notes, and snippets.

@kirkelifson
kirkelifson / all_nil.rb
Created November 6, 2015 08:11
rails: all_nil? -- returns true if list of object attributes are nil
def all_nil?(object, *options)
options.map { |item| object.send(item) }.compact.empty?
end
@kirkelifson
kirkelifson / keybase.md
Created January 12, 2015 17:33
Keybase verification

Keybase proof

I hereby claim:

  • I am kirkelifson on github.
  • I am kirkelifson (https://keybase.io/kirkelifson) on keybase.
  • I have a public key whose fingerprint is 7C6C 9C5D 6CCA 5950 D216 627C 8825 A623 5817 B4C8

To claim this, I am signing this object: