invisible_controller 0.1.7 → 0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 722d059ffdb47a68b313b24c8d2f36d407faf7fc
|
4
|
+
data.tar.gz: 2ea3e7ea604eb8525808862e2bb16c3292ddd716
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad31d18be96c15f5a0854bc478e488b5a58073a7d018e632aeec26ddb6693c4e77102aa76657087c83e961468240d8cc2e4749ffa989e64e4a4c1478f08c5c04
|
7
|
+
data.tar.gz: 31c0d8532d535b0cb23c38be505e4dfdac09e3871701abb683a6261d2ddac7151d0e5ac1309b8fb18b7b4d8138807395ff1beb7d83b286a3ebd8ccbb7324d371
|
@@ -87,7 +87,7 @@ module InvisibleController
|
|
87
87
|
end
|
88
88
|
def define_singleton_resource() active_class.find(params[:id]) end
|
89
89
|
def klass() resource_name.classify.constantize rescue Class end
|
90
|
-
def permitted_params() params.permit( resource_name.to_sym => klass.whitelisted ) end
|
90
|
+
def permitted_params() params.permit( resource_name.to_sym => (@resource || klass).whitelisted ) end
|
91
91
|
def processed_params() permitted_params[resource_name] end
|
92
92
|
end
|
93
93
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: invisible_controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Moody
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|