Skip to content

Instantly share code, notes, and snippets.

@kelhusseiny
Created April 20, 2012 04:39
Show Gist options
  • Select an option

  • Save kelhusseiny/2426043 to your computer and use it in GitHub Desktop.

Select an option

Save kelhusseiny/2426043 to your computer and use it in GitHub Desktop.
require 'digest/sha1'
encrypted_password= Digest::SHA1.hexdigest(password)
@Cris245

Cris245 commented May 27, 2015

Copy link
Copy Markdown

hi, i thing this file goes into db, with schema.rb and seed.rb (not 100% sure but its something)

@kunokdev

kunokdev commented Jan 8, 2016

Copy link
Copy Markdown

I too have same problem as pruzoth, where should I save this file?

@ramkrishna67

Copy link
Copy Markdown

You need to include it in Gemfile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment