<commit_before>= devise_certifiable

Sign up certification strategy for devise[http://github.com/plataformatec/devise]. New sign up users need to be certified before they can sign in. After sign up an email is sent to the email address specified in the devise configuration option _config.mailer_sender_.

Devise_certifiable has been tested with Devise 1.2.1 and Rails 3.0.6 using ActiveRecord, but similar version should work as well (ie. Devise 1.2.x and Rails 3.0.x). 

== Installation

 rails generate devise_certifiable MODEL

will add _:certifiable_ to model _MODEL_ and create a migration file.

== Configuration

There are no configuration options at the moment.

=== Controllers

By default devise_certifiable follows Devise authentication to allow certifications. You can customize how to authenticate for a certifier overriding _:authenticate_certifier!_ in _application_controller.rb_. For example using CanCan[https://github.com/ryanb/cancan]:

 def authenticate_certifier!
    authorize! :certify, User
  end

=== Views

You can customize the views and mails by doing:

 rails generate devise_certifiable:install views

This will copy the views to app/views/devise.

=== Localization

Localization can be customized by:

 rails generate devise_certifiable:install

This will copy the locale file to your rails tree.

== Contributing to devise_certifiable
 
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
* Fork the project
* Start a feature/bugfix branch
* Commit and push until you are happy with your contribution
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

== Copyright

Copyright (c) 2011 <NAME>. See MIT-LICENSE for further details.
<commit_msg>Update README.<commit_after>= devise_certifiable

Sign up certification strategy for devise[http://github.com/plataformatec/devise]. New sign up users need to be certified before they can sign in. After sign up an email is sent to the email address specified in the devise configuration option _config.mailer_sender_.

Devise_certifiable has been tested with Devise 1.2.1 and Rails 3.0.6 using ActiveRecord, but similar version should work as well (ie. Devise 1.2.x and Rails 3.0.x). 

== Installation

 rails generate devise_certifiable MODEL

will add _:certifiable_ to model _MODEL_ and create a migration file.

== Configuration

There are no configuration options at the moment.

=== Controllers

By default devise_certifiable follows Devise authentication to allow certifications. You can customize how to authenticate for a certifier overriding _:authenticate_certifier!_ in _application_controller.rb_. For example using CanCan[https://github.com/ryanb/cancan]:

 def authenticate_certifier!
    authorize! :certify, User
  end

=== Views

You can customize the views and mails by doing:

 rails generate devise_certifiable:install views

This will copy the views to app/views/devise.

=== Localization

Localization can be customized by:

 rails generate devise_certifiable:install

This will copy the locale file to your rails tree.

== Contributing to devise_certifiable
 
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
* Fork the project
* Start a feature/bugfix branch
* Commit and push until you are happy with your contribution
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

== Copyright

Copyright (c) 2011 <NAME>. See LICENSE for further details.

{'fraction_non_alphanumeric': 0.04984571564206029, 'fraction_numerical': 0.006646095418941372, 'mean_word_length': 4.559366754617415, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4169796', 'n_tokens_mistral': 1159, 'n_tokens_neox': 1068, 'n_words': 575}