Sha256: 379b9e3f52990be9cb335eacbe01a56196f057e65a5da1fa849b0e38a41852e9
Contents?: true
Size: 1.29 KB
Versions: 1
Compression:
Stored size: 1.29 KB
Contents
module Stationed module Generators module Plugins module Devise def finish_template gem 'devise' copy_file 'devise.rb', 'spec/support/devise.rb' route "devise_scope :user do\n root to: 'devise/sessions#new'\n end\n" environment nil, env: :test do "config.action_mailer.default_url_options = { host: 'example.com' }" end environment nil, env: :development do "config.action_mailer.default_url_options = { host: 'localhost:3000' }" end super end def run_bundle super generate 'devise:install' generate 'devise user' application do <<-RUBY # Let Pundit authorization or custom responders not influence the workings # of Devise. config.to_prepare do [ Devise::SessionsController, Devise::RegistrationsController, Devise::PasswordsController ].each do |devise_controller_class| devise_controller_class.skip_after_action :verify_authorized devise_controller_class.skip_after_action :verify_policy_scoped devise_controller_class.responder = ActionController::Responder end end RUBY end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stationed-0.0.1 | lib/stationed/generators/plugins/devise.rb |