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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 650f80cdadc83ce5ac92c19fe4a5c1f2ee6b091d
4
- data.tar.gz: d8e32fd1285fad8bc61567690366aefb6bb2377f
3
+ metadata.gz: addd9dea815b6854bf60cfd8f744c62c5518e411
4
+ data.tar.gz: c1058fbbb986560b82c32bc478f9179498423987
5
5
  SHA512:
6
- metadata.gz: 09ea6309a91fa3fb3f72669a4f97482fddc4251c9e0a60fd5128ce0bc761f9ea204c3710af8ea0cc096dfba14881d23aab3afb0d275cc73a96c03d2323a67cfe
7
- data.tar.gz: de74aea8c58ae7835e39ad502985d7e842f5baeddf4927a40425cbaf4e0c70b9104d2563dcbab1e6d70ebb42ba877f01218cc62cec767dbfa7aa9e15ef1e4c43
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 = model_class.new(safe_parameters)
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
@@ -1,3 +1,3 @@
1
1
  module CrujCrujCruj
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cruj_cruj_cruj
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Campos