castle-rb 1.2.7 → 1.2.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eca93c7439a62a6b02c3dfb27c836cbcd4f3f83b
4
- data.tar.gz: dd1c219ee171ea83110bdaf046a54caf49187cdc
3
+ metadata.gz: 9506fef7cbf7d53b94f37be777bb74f8f9ca53c6
4
+ data.tar.gz: bf734c73701e5f80f283d39f98f743f5d66260ae
5
5
  SHA512:
6
- metadata.gz: 4af2c2b7821ae7b359555b38b12e039f72d83467c5e9b378e53d15444780fb2a032228597ae5b2cdf4d7fce0336f80bba5edca2dcc69f91fa02cf44cfb7bfacb
7
- data.tar.gz: 4dc070f9a8df4df8e28166885d47b7bdba1657be2d7cddb0efed0210cd4a37ef075889109f962a42ec8401d19efaa21cab796526736e148b63a317a22dd3a1fc
6
+ metadata.gz: 653e9fc67813f8606ad4c8c278336931cb103e16d117d62b103f9b20cebdc4ec0f7834689e44e994e7992a826e5233cb3c7548db9c3053ac0bf40935165b8981
7
+ data.tar.gz: 472d9167a99b92b57a525bedf1d72c22871f8fa7cb3848a66c26c07c8b476b47e4dca710ea19b509507e8b95357e36c3101c2b9467b73c9eda66248ca507949d
@@ -3,7 +3,7 @@ module Castle
3
3
  has_one :user
4
4
  has_one :context
5
5
 
6
- instance_post :allow
6
+ instance_post :approve
7
7
  instance_post :deny
8
8
  instance_post :reset
9
9
  end
@@ -19,14 +19,14 @@ module Castle
19
19
  end
20
20
 
21
21
  # Transform model.user.id to model.user_id to allow calls on nested models
22
- def attributes
23
- attrs = super
24
- if attrs['user'] && attrs['user']['id']
25
- attrs.merge!('user_id' => attrs['user']['id'])
26
- attrs.delete 'user'
27
- end
28
- attrs
29
- end
22
+ # def attributes
23
+ # attrs = super
24
+ # if attrs['user'] && attrs['user']['id']
25
+ # attrs.merge!('user_id' => attrs['user']['id'])
26
+ # attrs.delete 'user'
27
+ # end
28
+ # attrs
29
+ # end
30
30
 
31
31
  METHODS.each do |method|
32
32
  class_eval <<-RUBY, __FILE__, __LINE__ + 1
@@ -1,3 +1,3 @@
1
1
  module Castle
2
- VERSION = "1.2.7"
2
+ VERSION = "1.2.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: castle-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.7
4
+ version: 1.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johan Brissmyr