polyblock 1.0.8 → 1.1.0

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: 1ea93f95db119761476709c06e9b1254c2d2c6f7
4
- data.tar.gz: ce5225f261ae7f12f394dfd9aafe9d2539c17028
3
+ metadata.gz: 6da07f208397a2f19bff120cacb833656ea11756
4
+ data.tar.gz: 96e21198598afcde2fa5423840aa2adc96f86bfa
5
5
  SHA512:
6
- metadata.gz: e9e8f519b939293a471e2c48c2a0d7eac231fae07ddf68dfc07bfbab78003c6cb2a2a55db80069f26e9a677d6eef349962fcf8436e08be0e71b8cf6afa9dcbe7
7
- data.tar.gz: 17e56270d98890e6e5999046b2cf873fa24becf3d393baec39b09dbd992e3f101ad387bbeccb24f7a12d20d2287a94166ebe14f99e895b1ea21ca2c493119330
6
+ metadata.gz: 9b7d7b2baa5323d82bbac1cde689ed2018a6b297793d922eeabeaa6caad9a62ffe0038e863d13298a5e072db7a30a2ae3553e6622dd008462f41ece3cb63e9a7
7
+ data.tar.gz: 031f8a76427bfe1e0a956c6a4d9540d584ba8b9dfd656c4a96a5e8d648feedbbae29514e1c812dcbdf0be4b178db720468d21cd0dd23cf423258f3e4303f7a05
@@ -1,12 +1,12 @@
1
1
  require "ckeditor"
2
- require 'polyblock/capybara_helpers'
2
+ require 'polyblock/strong_params_helper'
3
3
 
4
4
  module Polyblock
5
5
  class Engine < Rails::Engine
6
6
  isolate_namespace Polyblock
7
7
  initializer 'polyblock_engine.action_controller' do |app|
8
8
  ActiveSupport.on_load :action_controller do
9
- # helper Polyblock::PolyblocksHelper
9
+ helper Polyblock::StrongParamsHelper
10
10
  end
11
11
  end
12
12
  end
@@ -0,0 +1,11 @@
1
+ require 'polyblock'
2
+
3
+ module Polyblock
4
+ module StrongParamsHelper
5
+
6
+ def polyblock_params(block)
7
+ { :"#{block}_attributes" => [:name, :content] }
8
+ end
9
+
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module Polyblock
2
- VERSION = "1.0.8"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyblock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith
@@ -289,6 +289,7 @@ files:
289
289
  - lib/polyblock/glue.rb
290
290
  - lib/polyblock/has_polyblock.rb
291
291
  - lib/polyblock/railtie.rb
292
+ - lib/polyblock/strong_params_helper.rb
292
293
  - lib/polyblock/validators.rb
293
294
  - lib/polyblock/validators/polyblock_presence_validator.rb
294
295
  - lib/polyblock/version.rb