Skip to content

Instantly share code, notes, and snippets.

@aep
Created March 25, 2014 16:19
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 aep/9765382 to your computer and use it in GitHub Desktop.
Save aep/9765382 to your computer and use it in GitHub Desktop.
class User < ActiveRecord::Base
belongs_to :app
before_create :make_token
protected
def make_token
puts "+++++++++++MAKING TOKEN!"
token = "TOTALLYRANDOMSTRING"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment