Sha256: cd71bd5a1aa7e6a662747db96234093bc3ee358ab69cd87425348dbf0ac3b522
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 Bytes
Contents
class <%= user_class_name %> < ActiveRecord::Base acts_as_authentic attr_accessor :current_password attr_accessible :login, :email, :password, :password_confirmation, :current_password validate_on_update :require_current_password private def require_current_password us = <%= user_session_class_name %>.new(:login => login, :password => current_password) errors.add(:current_password) unless us.valid? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iain-pizza-generators-0.1.4 | rails_generators/pizza_authentication/templates/user.rb |