Sha256: 689a241936d69acbfc1e2cc65799fac5b0e65528c93c97d748d8f4a63dca1921
Contents?: true
Size: 394 Bytes
Versions: 2
Compression:
Stored size: 394 Bytes
Contents
module SignedForm module TestHelper def permit_all_parameters @controller.instance_eval do def params @permit_all_parameters ||= super.permit! end end if block_given? yield @controller.remove_instance_variable :@permit_all_parameters @controller.singleton_class.send :remove_method, :params end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
signed_form-0.5.0 | lib/signed_form/test_helper.rb |
signed_form-0.2.0 | lib/signed_form/test_helper.rb |