route_counter:依靠您的 Rails 路线

时间:2021-07-06 13:19:00
【文件属性】:
文件名称:route_counter:依靠您的 Rails 路线
文件大小:11KB
文件格式:ZIP
更新时间:2021-07-06 13:19:00
Ruby 路由计数器 当您想知道您的路线被使用了多少时。 如果您想知道它们是否被使用,这将特别有用。 安装 将此行添加到应用程序的 Gemfile 中: gem 'route_counter' 然后执行: $ bundle 或者自己安装: $ gem install route_counter 在初始化程序中启用记录并插入中间件: RouteCounter . config . enabled = true Rails . application . config . middleware . use RouteCounter :: Middleware 添加到 Rakefile: require "route_counter/tasks" 用法 检查使用了什么。 $ bundle exec rake routes:count:local 所有这些都存储在您的磁
【文件预览】:
route_counter-master
----Rakefile(29B)
----Gemfile(98B)
----route_counter.gemspec(1KB)
----.rspec(26B)
----spec()
--------redis_recorder_spec.rb(1KB)
--------config_spec.rb(1023B)
--------file_recorder_spec.rb(1KB)
--------spec_helper.rb(376B)
----.gitignore(185B)
----lib()
--------route_counter()
--------route_counter.rb(648B)
----README.md(2KB)
----LICENSE.txt(1KB)

网友评论