bowtie 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{bowtie}
3
- s.version = "0.4.2"
3
+ s.version = "0.4.3"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Tomás Pollak"]
@@ -72,6 +72,7 @@ module Bowtie
72
72
  end
73
73
 
74
74
  class Object
75
+
75
76
  def primary_key
76
77
  send(self.class.primary_key)
77
78
  end
@@ -33,7 +33,7 @@ module Bowtie
33
33
  end
34
34
 
35
35
  get '/' do
36
- # redirect '' results in an endless redirect on the current version of sinatra/rack
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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 2
10
- version: 0.4.2
9
+ - 3
10
+ version: 0.4.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Tom\xC3\xA1s Pollak"