Select Git revision
avoid_current_organization.yml
-
Doug Stull authored
- add rubocop to lint on use of Current.organization outside of approved app layers. - see #442751 for details ``` # # bad # class SomeService # def execute # do_something_with(Current.organization) # end # end # # # good # class SomeController < ApplicationController # def create # response = SomeService.new(organization: Current.organization).execute # end # end # # class SomeService # def initialize(organization:) # @organization = organization # end # # def execute # do_something_with(@organization) # end # end ```
Doug Stull authored- add rubocop to lint on use of Current.organization outside of approved app layers. - see #442751 for details ``` # # bad # class SomeService # def execute # do_something_with(Current.organization) # end # end # # # good # class SomeController < ApplicationController # def create # response = SomeService.new(organization: Current.organization).execute # end # end # # class SomeService # def initialize(organization:) # @organization = organization # end # # def execute # do_something_with(@organization) # end # end ```
Code owners
Assign users and groups as approvers for specific file changes. Learn more.