acts_as_tokenizable 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{acts_as_tokenizable}
8
- s.version = "0.2.0"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Enrique Garcia Cota", "Francisco de Juan"]
@@ -4,6 +4,6 @@ class ActiveRecord::Base
4
4
  def self.acts_as_tokenizable(field_name=:token)
5
5
  include ActsAsTokenizable
6
6
  self.token_field_name = field_name
7
- self.before_validation :tokenize
7
+ self.before_save :tokenize
8
8
  end
9
9
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_tokenizable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enrique Garcia Cota