bowtie 0.4.2 → 0.4.3
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/bowtie.gemspec +1 -1
- data/lib/bowtie/adapters/datamapper.rb +1 -0
- data/lib/bowtie/admin.rb +1 -2
- metadata +3 -3
data/bowtie.gemspec
CHANGED
data/lib/bowtie/admin.rb
CHANGED
@@ -33,7 +33,7 @@ module Bowtie
|
|
33
33
|
end
|
34
34
|
|
35
35
|
get '/' do
|
36
|
-
|
36
|
+
# redirect '' results in an endless redirect on the current version of sinatra/rack
|
37
37
|
redirect '/' + @models.first.linkable
|
38
38
|
end
|
39
39
|
|
@@ -92,7 +92,6 @@ module Bowtie
|
|
92
92
|
put "/:model/:id" do
|
93
93
|
if request.xhr? # dont pass through hooks or put the boolean stuff
|
94
94
|
# if Bowtie.update!(resource, params[:resource].normalize)
|
95
|
-
puts params[:resource].inspect
|
96
95
|
if Bowtie.update!(resource, params[:resource].filter_inaccessible_in(model).normalize)
|
97
96
|
resource.to_json
|
98
97
|
else
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bowtie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 3
|
10
|
+
version: 0.4.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Tom\xC3\xA1s Pollak"
|