Skip to content

Instantly share code, notes, and snippets.

@cbetta
Created October 9, 2012 15:25
Show Gist options
  • Save cbetta/3859506 to your computer and use it in GitHub Desktop.
Save cbetta/3859506 to your computer and use it in GitHub Desktop.
Step 2 - Add terms & conditions validation to Omniauth Identity
class Identity < OmniAuth::Identity::Models::ActiveRecord
...
validates :conditions, acceptance: true, allow_nil: false, on: :create
attr_accessor :conditions
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment