Permalink
Browse files

Typo...

  • Loading branch information...
1 parent 0825a7c commit bc0fb0fe431796dd99ea0781ebb6c2ca9851a75c @skalnik skalnik committed Jun 30, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/user.rb
View
2 app/models/user.rb
@@ -112,6 +112,6 @@ def secure_digest(*args)
end
def generate_api_key!
- self.updated_attribute(:api_key, secure_digest(Time.now, (1..10).map { rand.to_i }))
+ self.update_attribute(:api_key, secure_digest(Time.now, (1..10).map { rand.to_i }))
end
end

0 comments on commit bc0fb0f

Please sign in to comment.