# File lib/merb-auth-more/mixins/salted_user/dm_salted_user.rb, line 5
        def self.extended(base)
          base.class_eval do

            property :crypted_password, String, :length => 60

            if Merb::Authentication::Mixins::SaltedUser > base
              property :salt, String
            end

            validates_present        :password, :if => proc{|m| m.password_required?}
            validates_is_confirmed   :password, :if => proc{|m| m.password_required?}

            before :save,   :encrypt_password
          end # base.class_eval

        end