ixtlan-configuration 0.1.0 → 0.1.1
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.
@@ -33,7 +33,7 @@ module Ixtlan
|
|
33
33
|
end
|
34
34
|
|
35
35
|
on post do
|
36
|
-
updated_at = keeps( Configuration )[
|
36
|
+
updated_at = keeps( Configuration )[ 'updated_at' ]
|
37
37
|
config = Configuration.optimistic_get!( updated_at,
|
38
38
|
Configuration.instance.id )
|
39
39
|
config.attributes = params
|
@@ -41,40 +41,7 @@ module Ixtlan
|
|
41
41
|
config.save
|
42
42
|
write config
|
43
43
|
end
|
44
|
-
|
45
|
-
# on get, :id do |id|
|
46
|
-
# write Configuration.get!( id )
|
47
|
-
# end
|
48
|
-
|
49
|
-
# on get do
|
50
|
-
# write Configuration.all
|
51
|
-
# end
|
52
|
-
|
53
|
-
# on post do
|
54
|
-
# config = new_instance( Configuration )
|
55
|
-
# config.save
|
56
|
-
# write config
|
57
|
-
# end
|
58
|
-
|
59
|
-
# on put, :id do |id|
|
60
|
-
# updated_at = keeps( Configuration )[ :updated_at ]
|
61
|
-
# config = Configuration.optimistic_get!( updated_at,
|
62
|
-
# id )
|
63
|
-
# config.attributes = params
|
64
|
-
# config.modified_by = current_user if config.dirty?
|
65
|
-
# config.save
|
66
|
-
# write config
|
67
|
-
# end
|
68
|
-
|
69
|
-
# on delete, :id do |id|
|
70
|
-
# updated_at = keeps( Configuration )[ :updated_at ]
|
71
|
-
# config = Configuration.optimistic_get( updated_at,
|
72
|
-
# id )
|
73
|
-
# config.destroy
|
74
|
-
# head 200
|
75
|
-
# end
|
76
|
-
|
77
44
|
end
|
78
45
|
end
|
79
46
|
end
|
80
|
-
end
|
47
|
+
end
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: ixtlan-configuration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Christian Meier
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-04-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: slf4r
|