cruj_cruj_cruj 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/cruj_cruj_cruj_controller.rb +5 -1
- data/lib/cruj_cruj_cruj/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: addd9dea815b6854bf60cfd8f744c62c5518e411
|
4
|
+
data.tar.gz: c1058fbbb986560b82c32bc478f9179498423987
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cbaab435cb45817b65b7fad1ea27e4b6f97a2618242480b484897243d9042f2067960e84396895a75377495e0585142b5dfc49160cc03a08390075f57495a75
|
7
|
+
data.tar.gz: 8fd4a694f26fd2dff61ce898b545382aaf43c26b984033a234c264eebaac8ee496c128c27455adecc2402cb9214c40c957e20d2a05370b285976435da2ab34ea
|
@@ -86,7 +86,11 @@ class CrujCrujCrujController < ApplicationController
|
|
86
86
|
end
|
87
87
|
|
88
88
|
def build_resource
|
89
|
-
@resource =
|
89
|
+
@resource = if params[snake_case_model_name]
|
90
|
+
model_class.new(safe_parameters)
|
91
|
+
else
|
92
|
+
model_class.new
|
93
|
+
end
|
90
94
|
end
|
91
95
|
|
92
96
|
def safe_parameters
|