Class: Trocla::Formats::Pgsql
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
expensive, #expensive?, expensive?, #initialize, #render
Constructor Details
This class inherits a constructor from Trocla::Formats::Base
Instance Method Details
#format(plain_password, options = {}) ⇒ Object
3 4 5 6 |
# File 'lib/trocla/formats/pgsql.rb', line 3 def format(plain_password,={}) raise "You need pass the username as an option to use this format" unless ['username'] "md5" + Digest::MD5.hexdigest(plain_password + ['username']) end |