Skip to content

pineworks/mori

Repository files navigation

Mori

Badgers

Code Climate Build Status Coverage Status

Mori is a lightweight Rails Engine built to handle authentication.

Mori was built with the intention of being easy to override, and easy to implement.

Installing

Mori is a Rails Engine tested against Rails 3.2+ and Ruby 1.9.3+

Include it in your Gemfile

gem 'mori'

Bundle

bundle install

After your development database exists, run the generator

rails g mori:install

The generator does the following:

  • Inserts Mori::User in your User model (or creates the User Model)
  • Inserts Mori::Controller in your ApplicationController
  • Creates a migration to add missing collumns, or create a new table.

Configuration

Mori comes with configuration options. You can override defaults in config/initializers/mori.rb

Mori.configure do |config|

  # Mori Default Configuration

  config.from_email = 'reply@example.com'
  config.app_name = Rails.application.class.parent_name.humanize
  config.allow_sign_up = true
  config.dashboard_path = '/'
  config.after_sign_up_path = '/'
  config.after_logout_path = '/'
  config.token_expiration = 14
end

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published