lib/simple_password_authentication/model_methods.rb
#Returns the salt value. If there is no value, one is generated.
Returns the salt value. If there is no value, one is generated.
Returns the salt value . If there is no value one is generated .
def salt
        read_attribute(:salt) or returning self.class.generate_salt do |s|
          write_attribute(:salt, s)
        end
      end
def salt read_attribute ( :salt ) or returning self . class . generate_salt do | s | write_attribute ( :salt , s ) end end
Returns the salt value.
Returns the salt value .