Sha256: b1f2b41552eec6b78a1990f58b7dd32eff5d2e958cda9f8c20a9065162279fab

Contents?: true

Size: 266 Bytes

Versions: 6

Compression:

Stored size: 266 Bytes

Contents

require 'polyblock'

module Polyblock
  module StrongParamsHelper 

    def self.polyblock_params(block)
      { :"#{block}_attributes" => [:name, :content] }
    end
    def polyblock_params(block)
      StrongParamsHelper.polyblock_params block
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
polyblock-1.2.6 lib/polyblock/strong_params_helper.rb
polyblock-1.2.5 lib/polyblock/strong_params_helper.rb
polyblock-1.2.4 lib/polyblock/strong_params_helper.rb
polyblock-1.2.3 lib/polyblock/strong_params_helper.rb
polyblock-1.2.2 lib/polyblock/strong_params_helper.rb
polyblock-1.2.1 lib/polyblock/strong_params_helper.rb