Module: AuthlogicCrowdRest::ActsAsAuthentic::Methods

Defined in:
lib/authlogic_crowd_rest/acts_as_authentic.rb

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



23
24
25
26
27
28
29
30
31
32
# File 'lib/authlogic_crowd_rest/acts_as_authentic.rb', line 23

def self.included(klass)
  return if !klass.column_names.include?("crowd_login")
  klass.class_eval do
    attr_accessor :crowd_password

    if 
      validates_uniqueness_of :crowd_login, :scope => validations_scope, :if => :using_crowd?
    end
  end
end