Created
December 1, 2016 15:13
-
-
Save halogenandtoast/318126adc179d421e35605db5bcfb663 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Monban.configure do |config| | |
| config.no_login_handler = ->(controller) do | |
| notice = Monban.config.sign_in_notice | |
| controller.flash.notice = notice.call | |
| controller.redirect_to controller.login_path | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RouteTranslator.config do |config| | |
| config.force_locale = true | |
| config.generate_unnamed_unlocalized_routes = true | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment