Skip to content

Instantly share code, notes, and snippets.

@fridgerator
Created November 27, 2016 02:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fridgerator/a90f9b720439d99b56eab2a5af37bb49 to your computer and use it in GitHub Desktop.
Save fridgerator/a90f9b720439d99b56eab2a5af37bb49 to your computer and use it in GitHub Desktop.
class Changeset
def initialize(instance)
@instance = instance
end
end
module Cset
def changeset(instance)
Changeset.new(instance)
end
end
class User
extend Cset
end
user = User.new
User.changeset(user)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment