Skip to content

Instantly share code, notes, and snippets.

@talum talum/sti_4.rb
Created Nov 25, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.