ixtlan-configuration 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,7 +33,7 @@ module Ixtlan
33
33
  end
34
34
 
35
35
  on post do
36
- updated_at = keeps( Configuration )[ :updated_at ]
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
@@ -24,7 +24,7 @@ module Ixtlan
24
24
 
25
25
  include DataMapper::Resource
26
26
 
27
- def self.storage_name(arg)
27
+ def self.storage_name( arg = :default )
28
28
  'ixtlan_configuration'
29
29
  end
30
30
 
@@ -74,4 +74,4 @@ module Ixtlan
74
74
 
75
75
  end
76
76
  end
77
- end
77
+ 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.0
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-01-28 00:00:00.000000000 Z
12
+ date: 2013-04-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: slf4r