Sha256: e8baee2e99a57aec367a3068eef1fae13fa719c84e41612dd02a9f2f0a3c40b9
Contents?: true
Size: 277 Bytes
Versions: 2
Compression:
Stored size: 277 Bytes
Contents
require 'polyblock' module Polyblock module StrongParamsHelper def self.polyblock_params(block) { :"#{block}_attributes" => [:name, :content] } end def polyblock_params(block) Polyblock::StrongParamsHelper.polyblock_params block end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
polyblock-1.2.0 | lib/polyblock/strong_params_helper.rb |
polyblock-1.1.1 | lib/polyblock/strong_params_helper.rb |