Skip to content

Instantly share code, notes, and snippets.

@tristanoneil
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tristanoneil/9463914 to your computer and use it in GitHub Desktop.
Save tristanoneil/9463914 to your computer and use it in GitHub Desktop.
  • Line 13 in CookbookUploadsController. Do we need to check if the upload is valid if we're checking if it's valid in the finish! method?
  • What value does Virtus add to CookbookUpload::Metadata that can't be achieved with accessors?
class A
  attr_accessor :b, :c, :d

  def initialize(h)
    h.each { |k, v| send("#{k}=", v) }
  end
end
  • What's the usecase of being able to pass CookbookUpload#finish! a block?
  • Can we find a better naming convention than maybe_x?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment