Sha256: 61b89c94ab2795c51e40d556f5c6e02a81406e69ea9a349901d08861d3236a4e

Contents?: true

Size: 1.67 KB

Versions: 2

Compression:

Stored size: 1.67 KB

Contents

# Authpro

[![Code Climate](https://codeclimate.com/github/ricn/authpro.png)](https://codeclimate.com/github/ricn/authpro)
[![Build Status](https://travis-ci.org/ricn/authpro.png?branch=master)](https://travis-ci.org/ricn/authpro)

Authpro is a simple authentication generator for Rails 4 It:

* Gives you sign up, log in, remember me & password reset functionality
* Has no hidden code, special super classes or mixins
* Has no configuration.

Authpro assumes you want:

* User as the model
* Email for login
* Erb for views. This might be configurable in the future because I like writing views using Slim.

However, you can easily change the code that Authpro generates if you want to. It's just simple Ruby / Rails code.

To be honest you really should change the generated code. Most of the code in the user model should be moved to a different place. You can use the new concerns functionality in Rails 4. More information about concerns can be found [here](http://37signals.com/svn/posts/3372-put-chubby-models-on-a-diet-with-concerns).

If concerns concerns you, you can always extract the code into Service Objects. More info about Service Objects can be found [here](http://railscasts.com/episodes/398-service-objects).

## Installation

Add this line to your application's Gemfile:

    gem 'authpro'

And then execute:

    $ bundle    
    $ rails generate authpro
    $ rake db:migrate    
    $ rails server

Open browser:

    $ open http://localhost:3000

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
authpro-1.0.1 README.md
authpro-1.0.0 README.md