sequence_on 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 435e96d6c211ac5457fd9281370e48645fbce435
4
- data.tar.gz: c43524bd0d6fe081b126040c096b8ce8720fc982
3
+ metadata.gz: 9618c3be5bdea726ff10c71a2b1c7c4defcb6b14
4
+ data.tar.gz: 44a9661efd046a062dd1ca4a7ffdea7138fdbe65
5
5
  SHA512:
6
- metadata.gz: b15f347b9b90370735c8c23ec15ea88fdf12652654ae07c006c02602b3788d1b88c63a29e6b340e73ca8eb811b0119da01b3d2d8f1c029d6caecb67da8823d0b
7
- data.tar.gz: 58cc6f67aca213d3d5af2cb309fdf068b4184ebe8ba9ed388fb3b51041dc265b968ab0fbdd525aea0961f9d18141ddce29b93476e6e5b85fe8eb39acec0498bb
6
+ metadata.gz: 9ea215f9c02ab3a675a16d00b9a062d0edbd679e64d4f5696d302bc85747efdab85d18ace4afa5b912d473eae2ea4f14606788ad389c7ae32784f287ab0b8257
7
+ data.tar.gz: 22b50a14f3ae5270e668e9cab3c696c7026d58a97fab3964930a460cd792876bf55cd3107b966410c2c0d6be76992ed8ffe5a9bd1a2d0e40964245b296d13294
@@ -38,7 +38,7 @@ module SequenceOn
38
38
  def sequenced_on(lmd, options = {})
39
39
  include InstanceMethods
40
40
  mattr_accessor :sequence_options, instance_accessor: false
41
- before_create :generate_sequence_id, prepend: true
41
+ before_save :generate_sequence_id
42
42
  self.sequence_options = DEFAULT_OPTIONS.merge(options).merge(lmd: lmd)
43
43
  end
44
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequence_on
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy SEBAN