class RailsNewApp::AuthorizationProcessor
Public Instance Methods
configure(config)
click to toggle source
# File lib/rails-new-app/processors/authorization_processor.rb, line 10 def configure(config) puts "Processing Authorization config" case config[:authorization][:key] when "pundit" then apply_template "pundit-config" when "cancancan" then apply_template "cancancan-config" end end
update_gemfile(config)
click to toggle source
# File lib/rails-new-app/processors/authorization_processor.rb, line 3 def update_gemfile(config) case config[:authorization][:key] when "pundit" then apply_template "pundit-gemfile" when "cancancan" then apply_template "cancancan-gemfile" end end