Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

===

  • Loading branch information...
commit 9d583154e37ca577c0953de470595485a1c19cb9 1 parent 3f4e18d
@miry miry authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/models/category.rb
View
6 app/models/category.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.