Sha256: b8d9340bf2d6ec78ebcbbeef871f7be25f7b22b2e9771281c0659d2594c6b4f1

Contents?: true

Size: 173 Bytes

Versions: 1

Compression:

Stored size: 173 Bytes

Contents

require 'polyblock'

module Polyblock
  module StrongParamsHelper 

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

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polyblock-1.1.0 lib/polyblock/strong_params_helper.rb