<commit_before>= RailsAdmin
==== RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data
RailsAdmin was conceived as a port of MerbAdmin[http://github.com/sferik/merb-admin] to Rails 3 and implemented as a {Ruby Summer of Code project}[http://www.rubysoc.org/projects] by {<NAME>}[http://github.com/hurrycane] with mentors {<NAME>}[http://github.com/sferik], {<NAME>}[http://github.com/wycats], {<NAME>}[http://github.com/rosenfeld], {<NAME>}[http://github.com/plukevdh], and {<NAME>}[http://github.com/reinh].

It currently offers the following functionality:
* Show database tables
* Easily update data
* Create new data
* Safely delete data
* Automatic form validation
* Search
* Authentication (via Devise[http://github.com/plataformatec/devise])
* User action history
== Screenshots
http://github.com/sferik/rails_admin/raw/master/screenshots/list.png
http://github.com/sferik/rails_admin/raw/master/screenshots/edit.png
== Installation
In your <tt>Gemfile</tt>, add the following dependency:
  gem 'devise' # Devise must be required before RailsAdmin
  gem 'rails_admin', :git => 'git://github.com/sferik/rails_admin.git'
Run:
  $ bundle update
And then run:
  $ rails generate rails_admin:install_admin
This task will install RailsAdmin. During this process, it install Devise[http://github.com/plataformatec/devise] if you don't already have it installed. Devise[http://github.com/plataformatec/devise] is required for authentication to protect your data from anonymous users.

== Usage
Start the server:
  $ rails server
You should now be able to administer your site at http://localhost:3000/admin (after you have created a simple account)

== Configuration

RailsAdmin provides its out of the box administrative interface by inspecting application's model files and by following some Rails conventions. For a more tailored experience it also provides a configuration DSL which allows you to customize many aspects of the CRUD interface.

The configuration code should be placed in an initializer file, for example:
  config/initializers/rails_admin.rb

You can exclude models from RailsAdmin by appending those models to <tt>excluded_models</tt>:

  RailsAdmin.config do |config|
    config.excluded_models << ClassName
  end<commit_msg>Add an example of customizing authentication to the readme<commit_after>= RailsAdmin
==== RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data
RailsAdmin was conceived as a port of MerbAdmin[http://github.com/sferik/merb-admin] to Rails 3 and implemented as a {Ruby Summer of Code project}[http://www.rubysoc.org/projects] by {<NAME>}[http://github.com/hurrycane] with mentors {<NAME>}[http://github.com/sferik], {<NAME>}[http://github.com/wycats], {<NAME>}[http://github.com/rosenfeld], {<NAME>}[http://github.com/plukevdh], and {<NAME>}[http://github.com/reinh].

It currently offers the following functionality:
* Show database tables
* Easily update data
* Create new data
* Safely delete data
* Automatic form validation
* Search
* Authentication (via Devise[http://github.com/plataformatec/devise])
* User action history
== Screenshots
http://github.com/sferik/rails_admin/raw/master/screenshots/list.png
http://github.com/sferik/rails_admin/raw/master/screenshots/edit.png
== Installation
In your <tt>Gemfile</tt>, add the following dependency:
  gem 'devise' # Devise must be required before RailsAdmin
  gem 'rails_admin', :git => 'git://github.com/sferik/rails_admin.git'
Run:
  $ bundle update
And then run:
  $ rails generate rails_admin:install_admin
This task will install RailsAdmin. During this process, it install Devise[http://github.com/plataformatec/devise] if you don't already have it installed. Devise[http://github.com/plataformatec/devise] is required for authentication to protect your data from anonymous users.

== Usage
Start the server:
  $ rails server
You should now be able to administer your site at http://localhost:3000/admin (after you have created a simple account)

== Configuration

RailsAdmin provides its out of the box administrative interface by inspecting application's model files and by following some Rails conventions. For a more tailored experience it also provides a configuration DSL which allows you to customize many aspects of the CRUD interface.

The configuration code should be placed in an initializer file, for example:
  config/initializers/rails_admin.rb

==== General

You can customize authentication by providing a custom block for <tt>RailsAdmin.authenticate_with</tt>. To disable authentication pass an empty block:

  RailsAdmin.authenticate_with {}

You can exclude models from RailsAdmin by appending those models to <tt>excluded_models</tt>:

  RailsAdmin.config do |config|
    config.excluded_models << ClassName
  end
{'fraction_non_alphanumeric': 0.0982959268495428, 'fraction_numerical': 0.0020781379883624274, 'mean_word_length': 5.123409669211196, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3540790', 'n_tokens_mistral': 1428, 'n_tokens_neox': 1345, 'n_words': 495}