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 FranchiseeRequest < ActiveRecord:: Base | |
attr_accessor :skip_region_validation | |
attr_accessor :skip_region_validation, as: :import | |
validate :expanding_into_region, unless: !!ENV["IMPORT_HAX_LOL"] | |
def expanding_into_region | |
raise error if franchise is not expanding into current region | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment