Floppy-amee 0.4.23 → 0.4.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/amee/rails.rb +7 -2
  2. data/lib/amee/version.rb +1 -1
  3. metadata +2 -2
data/lib/amee/rails.rb CHANGED
@@ -11,7 +11,7 @@ module AMEE
11
11
  include InstanceMethods
12
12
  # Install callbacks
13
13
  before_validation_on_create :amee_create
14
- before_save :amee_save
14
+ alias_method_chain :save, :amee
15
15
  before_destroy :amee_destroy
16
16
  # Check that this object has an AMEE profile UID when saving
17
17
  validates_presence_of :amee_profile
@@ -20,6 +20,11 @@ module AMEE
20
20
 
21
21
  module InstanceMethods
22
22
 
23
+ def save_with_amee
24
+ amee_save
25
+ save_without_amee
26
+ end
27
+
23
28
  def amee_create
24
29
  # Create profile
25
30
  profile = AMEE::Profile::Profile.create(amee_connection)
@@ -43,4 +48,4 @@ module AMEE
43
48
  end
44
49
 
45
50
  end
46
- end
51
+ end
data/lib/amee/version.rb CHANGED
@@ -3,7 +3,7 @@ module AMEE
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
5
  MINOR = 4
6
- TINY = 23
6
+ TINY = 24
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Floppy-amee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.23
4
+ version: 0.4.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Smith
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-09 00:00:00 -08:00
12
+ date: 2009-01-23 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15