How to optimize and DRY scopes in Ruby on Rails 5.2?

后端 未结 0 1499
别那么骄傲
别那么骄傲 2021-02-14 07:12

In order do DRY my application, I defined the \'visible\' scope (which exists for all my tables) in the application_record.rb file:

scope :visible, -> { where          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题