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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52aa11dec723d498a634bc8b28ad30284cb45eb7
4
- data.tar.gz: 13204ac05a6d83e86883529f73e8aa9b90c9921b
3
+ metadata.gz: 674a7fb1a4c027d411d1f36d851f17bc49800594
4
+ data.tar.gz: 5ee89eb232cfdd342e484cd6a9ab04279207d1b1
5
5
  SHA512:
6
- metadata.gz: fdd64a9cf8207ef93f961f524378364a36262f28ef45ea3e4959ed645c5322552bfdecdc1fd6d5d13a71883ad01cf023719d4b0cb4928e69628f552aba2df5f7
7
- data.tar.gz: e1e20ceefd0750478d7445b26951010e093299f8f60a743130dbe5b6f3de26993c9c8589721aa26a92d6b327e292dc62654aec5edd8b9c8e3cc8cde78d27a296
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.permit(:id, :name, :content, :_destroy)
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
@@ -1,3 +1,3 @@
1
1
  module Polyblock
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
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.2
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-27 00:00:00.000000000 Z
11
+ date: 2015-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails