https://github.com/work-design/rails_auth
New Wave Auth Engine
https://github.com/work-design/rails_auth
design engine work
Last synced: 11 months ago
JSON representation
New Wave Auth Engine
- Host: GitHub
- URL: https://github.com/work-design/rails_auth
- Owner: work-design
- Created: 2014-05-05T14:41:38.000Z (about 12 years ago)
- Default Branch: main
- Last Pushed: 2025-07-10T04:23:08.000Z (11 months ago)
- Last Synced: 2025-07-10T11:31:34.573Z (11 months ago)
- Topics: design, engine, work
- Language: HTML
- Homepage: https://work.design/rails_auth
- Size: 2.75 MB
- Stars: 6
- Watchers: 1
- Forks: 5
- Open Issues: 8
-
Metadata Files:
- Readme: README.en.md
Awesome Lists containing this project
README
# RailsAuth
TheAuth is a Rails Engine for user authentication, more easy to use, more easy to override.
## Description
There are so many gems about auth, I separated the engine from our projects because of:
- more easy to understand and use, for example, `devise` is good, but difficult to override and config, it's unfriendly to fresh developers;
- more easy to config, just normal rails controller model and views;
- used `ActiveModel::SecurePassword` which was default included by rails, make so easy to deal with Password;
## How To Use
### Include in Controller
```ruby
# api
class ApplicationController < ActionController::Base
include Auth::Controller::Application
end
```
### Include in Model
```ruby
class User < ApplicationRecord
include Auth::Model::User
end
```
## methods RailsAuth provided:
```ruby
# in controller
current_user
```