polyblock 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/polyblock/polyblocks_controller.rb +3 -1
- data/lib/polyblock/version.rb +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: 674a7fb1a4c027d411d1f36d851f17bc49800594
|
4
|
+
data.tar.gz: 5ee89eb232cfdd342e484cd6a9ab04279207d1b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16b71b0b6010e6d42120407c80a0f4b3675aff986ca849953b4aaa051df653100852a16c1c0754b1105ccda844e0734fe07ff51362050abfec9837b0dda64d82
|
7
|
+
data.tar.gz: ecb527c34012872492f0d52631efacee3fbf03e97c3648c321ebf671d50e7df6ab1ece691ef7e0de5cf6e9a8ce3cd961c080940e4b039d007ad334359e51f243
|
@@ -8,7 +8,9 @@ module Polyblock
|
|
8
8
|
params[:pbs].each do |i, attrs|
|
9
9
|
next if attrs[:content].nil? ||
|
10
10
|
attrs[:content] == Polyblock::Block::DEFAULTS[:default_text]
|
11
|
-
permitted_attrs = attrs.
|
11
|
+
permitted_attrs = if attrs.respond_to? :permit
|
12
|
+
attrs.permit(:id, :name, :content, :_destroy)
|
13
|
+
else attrs end
|
12
14
|
id = permitted_attrs.delete :id
|
13
15
|
name = permitted_attrs[:name]
|
14
16
|
matching_block = nil
|
data/lib/polyblock/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyblock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MacKinley Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|