Skip to content

Instantly share code, notes, and snippets.

@dpritchett
Forked from unstablereality/gist:8419246
Created January 14, 2014 15:18
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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