params_patrol:向 strong_parameters gem 添加额外的日志报告选项-源码

上传者: 42164685 | 上传时间: 2021-06-10 20:03:40 | 文件大小: 10KB | 文件类型: ZIP
参数巡逻 留意可疑参数...然后调用备份 安装 将此行添加到应用程序的 Gemfile 中: gem 'params_patrol' 然后执行: $ bundle 或者自己安装: $ gem install params_patrol 用法 基于strong_parameters ( ) 构建并且是必需的依赖项。 要在 Rails 3 应用程序中使用ParamsPatrol , 在模型级别包括 include ActiveModel :: SuppressForbiddenAttributes 并在控制器级别包括 include ActionController :: HandleUnpermittedParameters ` 还需要设置强参数以在未允许的参数上引发异常,这些参数可以在config/application.rb设置, config . act

文件下载

资源详情

[{"title":"( 19 个子文件 10KB ) params_patrol:向 strong_parameters gem 添加额外的日志报告选项-源码","children":[{"title":"params_patrol-master","children":[{"title":"params_patrol.gemspec <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"LICENSE.txt <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":".ruby-version <span style='color:#111;'> 10B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"params_patrol.rb <span style='color:#111;'> 415B </span>","children":null,"spread":false},{"title":"params_patrol","children":[{"title":"version.rb <span style='color:#111;'> 44B </span>","children":null,"spread":false}],"spread":true},{"title":"action_controller","children":[{"title":"handle_unpermitted_parameters.rb <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"active_model","children":[{"title":"suppress_forbidden_attributes.rb <span style='color:#111;'> 678B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Gemfile <span style='color:#111;'> 98B </span>","children":null,"spread":false},{"title":".ruby-gemset <span style='color:#111;'> 13B </span>","children":null,"spread":false},{"title":"LICENCE.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"Rakefile <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"test","children":[{"title":"test_helper.rb <span style='color:#111;'> 729B </span>","children":null,"spread":false},{"title":"params_patrol_test.rb <span style='color:#111;'> 435B </span>","children":null,"spread":false},{"title":"active_model_suppress_forbidden_attributes_test.rb <span style='color:#111;'> 767B </span>","children":null,"spread":false},{"title":"decorates_parameters_logging_test.rb <span style='color:#111;'> 2.46KB </span>","children":null,"spread":false},{"title":"decorates_parameters_test.rb <span style='color:#111;'> 965B </span>","children":null,"spread":false},{"title":"action_controller_handle_unpermitted_parameters_test.rb <span style='color:#111;'> 741B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 123B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明