© 1999-2048 dssz.net 粤ICP备11031372号
[其它] decent_exposure:在控制器中创建声明性接口的助手-源码
说明:安装 将此行添加到您的应用程序的Gemfile中: gem 'decent_exposure' , '~> 3.0' 然后执行: $ bundle 或将其自己安装为: $ gem install decent_exposure API 到目前为止,整个API包含三种方法: expose , expose! 和exposure_config 。 在最简单的情况下,您将使用它在控制器中公开模型: class ThingsController < ApplicationCon<weixin_42131890> 上传 | 大小:67kb