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 +1 -1
- data/lib/scaffolding_extensions/model/sequel.rb +2 -2
- metadata +2 -2
data/README
CHANGED
@@ -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(
|
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(
|
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.
|
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
|
12
|
+
date: 2008-07-06 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|