Skip to content

Instantly share code, notes, and snippets.

@talum
Created November 25, 2018 19:31
Show Gist options
  • Save talum/087ba1606ea428a46c7c19ce5d7f3c01 to your computer and use it in GitHub Desktop.
Save talum/087ba1606ea428a46c7c19ce5d7f3c01 to your computer and use it in GitHub Desktop.
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