Sha256: 73ca862cb53c2440586d89ad2de3dfe76dce120d46341c8bd7ce14193b85c14a
Contents?: true
Size: 278 Bytes
Versions: 2
Compression:
Stored size: 278 Bytes
Contents
<% module_namespacing do -%> class <%= class_name %>Callbacks include Guacamole::Callbacks # Add your callbacks # before_create :encrypt_password # def encrypt_password # object.encrypted_password = BCrypt::Password.create(object.password) # end end <% end -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
guacamole-0.4.0 | lib/rails/generators/guacamole/callbacks/templates/callbacks.rb.tt |
guacamole-0.3.0 | lib/rails/generators/guacamole/callbacks/templates/callbacks.rb.tt |