Skip to content

Instantly share code, notes, and snippets.

@charleseff
Last active December 14, 2015 18:59
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 charleseff/5132991 to your computer and use it in GitHub Desktop.
Save charleseff/5132991 to your computer and use it in GitHub Desktop.
class Account < ActiveRecord::Base
NewWithOwner < Struct.new(:foo) do
def fetch
# returns an Account obj
end
end
CreateWithSchema < Struct.new(:foo) do
def fetch
# returns an Account obj
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment