Permalink
Browse files

===

  • Loading branch information...
1 parent 3f4e18d commit 9d583154e37ca577c0953de470595485a1c19cb9 @miry miry committed Dec 26, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/models/category.rb
View
@@ -7,9 +7,9 @@ class Category < ActiveRecord::Base
private
def init_token
- if self.token.blank?
- new_token = self.privated_token || SecureRandom.hex(16)
- write_attribute(:privated_token, new_token)
+ if self.private_token.blank?
+ new_token = self.private_token || SecureRandom.hex(16)
+ write_attribute(:private_token, new_token)
end
end
end

0 comments on commit 9d58315

Please sign in to comment.