No commit activity in last 3 years
No release in over 3 years
Easy way to login with devise, multiple model
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 4.2.7
 Project Readme

AnyLoginMultiple

This gem is inspired by any_login. This gem supports multiple models.

any-login-multiple-demo-v2

Installation

First of all, this gem only work in an environment where devise is installed.

Add this line to your application's Gemfile:

group :development, :test do
  gem 'any_login_multiple'
end

And then execute:

$ bundle install

Add this line to routes.rb:

mount AnyLoginMultiple::Engine => '/any_login_multiple' if Rails.env.development?

Add this lines to config/environments/development.rb:

config.after_initialize do
  AnyLoginMultiple.klass_names = ['User', 'Staff']
end

Usage

Add this line to application.html.erb:

<%= any_login_multiple_here if Rails.env.development? %>

License

The gem is available as open source under the terms of the MIT License.