scaffolding_extensions 1.1.6 → 1.1.7

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.
data/README CHANGED
@@ -28,7 +28,7 @@ Scaffolding Extensions currently supports:
28
28
  * Object/Relational Mappers
29
29
  * ActiveRecord 2.1
30
30
  * DataMapper 0.3.1
31
- * Sequel 2.1.0
31
+ * Sequel 2.2.0
32
32
  * Javascript Libaries (used for Ajax/Autocompleting)
33
33
  * Prototype 1.6.0.1
34
34
  * JQuery 1.2.3
@@ -19,7 +19,7 @@ module ScaffoldingExtensions::MetaSequel
19
19
 
20
20
  # Add the associated object to the object's association
21
21
  def scaffold_add_associated_object(association, object, associated_object)
22
- object.send(association_add_method_name(association.to_s), associated_object)
22
+ object.send(association_reflection(association).add_method, associated_object)
23
23
  end
24
24
 
25
25
  # Array of all association reflections for this model
@@ -204,7 +204,7 @@ module ScaffoldingExtensions::MetaSequel
204
204
 
205
205
  # Remove the associated object from object's association
206
206
  def scaffold_remove_associated_object(association, object, associated_object)
207
- object.send(association_remove_method_name(association.to_s), associated_object)
207
+ object.send(association_reflection(association).remove_method, associated_object)
208
208
  end
209
209
  end
210
210
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scaffolding_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Evans
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-26 00:00:00 -07:00
12
+ date: 2008-07-06 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15