scaffold_pico 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/templates/pico/search.rb.erb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9a8ab2a97285483da947927ed14ffb19cc41386
|
4
|
+
data.tar.gz: dd94b57c3b760891ca4be43320d9c38c01b91bcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c324e6d34bf1a5a53dbbbeec531b6c927a00f23f55b1de8e798489a7a2f0b0315acdf89bc2a29583d0aa94b528f5cd80b8872044639a69379bc80de5399914ad
|
7
|
+
data.tar.gz: d56e4f57c42f0f3e9d5fb99e1b09a86239fd6cfed0ffd9de9bed6dc77cb8a5493e8f1f42d268c9e0ab60e039a6e511d605e3c65380ffa3510ac2a71153fd45f6
|
data/README.md
CHANGED
@@ -92,3 +92,6 @@ You can't generate scaffolds for a mounted named engines. I don't know if we nee
|
|
92
92
|
## Copyright
|
93
93
|
|
94
94
|
Copyright (c) 2017 gudata. See LICENSE.txt for further details.
|
95
|
+
|
96
|
+
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgudata%2Fscaffold_pico.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgudata%2Fscaffold_pico?ref=badge_shield)
|
97
|
+
|
@@ -15,7 +15,7 @@ class <%= @rails.resource.search_class_name %>
|
|
15
15
|
|
16
16
|
<% @rails.controller.search_fields.select { |search_filed| @rails.resource.fields[search_filed] == 'integer' }.each do |search_filed| %>
|
17
17
|
<%=
|
18
|
-
"validates :#{
|
18
|
+
"validates :#{search_filed}, numericality: { only_integer: true }, allow_blank: true"
|
19
19
|
-%>
|
20
20
|
<% end %>
|
21
21
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scaffold_pico
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gudata
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|