Module: AuthlogicPam::ActsAsAuthentic::Methods
- Defined in:
- lib/authlogic_pam/acts_as_authentic.rb
Class Method Summary collapse
Class Method Details
.included?(klass) ⇒ Boolean
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/authlogic_pam/acts_as_authentic.rb', line 18 def self.included?(klass) klass.class_eval do attr_accessor :pam_password if validate_pam_login validates_uniqueness_of :pam_login, :scope => validations_scope, :if => :using_pam? validates_presence_of :pam_password, :if => :validate_pam? validate :validate_pam, :if => :validate_pam? end end end |