spec/dummy/app/models/user.rb
def state_base
    result = [email.to_s, password.to_s, tags.map(&:to_s).sort].join
    debug { "The user state base is #{result.inspect}" }
    result
  end
# Don't try this at home, you should include the *encrypted* password, not the plaintext here.
#
Don't try this at home, you should include the *encrypted* password, not the plaintext here.
Don ' t try this at home you should include the * encrypted * password not the plaintext here .
def state_base
    result = [email.to_s, password.to_s, tags.map(&:to_s).sort].join
    debug { "The user state base is #{result.inspect}" }
    result
  end
def state_base result = [ email . to_s , password . to_s , tags . map ( & :to_s ) . sort ] . join debug { "The user state base is #{result.inspect}" } result end
Don't try this at home, you should include the *encrypted* password, not the plaintext here.
Don ' t try this at home you should include the * encrypted * password not the plaintext here .