Created
November 25, 2018 19:31
-
-
Save talum/087ba1606ea428a46c7c19ce5d7f3c01 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AssignedRepo < ActiveRecord::Base | |
def contents | |
if $rollout.active?(:remove_content) | |
raise 'Contents called from assigned repo.' # Remove method when removing :remove_content rollout | |
else | |
return self.none if canonical.nil? | |
canonical.contents | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment