diff --git a/Gemfile b/Gemfile index c698f747..df030037 100644 --- a/Gemfile +++ b/Gemfile @@ -44,6 +44,7 @@ gem 'carrierwave' gem 'carrierwave-i18n' gem 'mini_magick' gem 'carrierwave-bombshelter' +gem 'pundit' group :development, :test do gem 'pry' @@ -66,4 +67,5 @@ group :development do gem 'capistrano-rails' gem 'capistrano-rbenv' gem 'rbnacl', '< 5.0' + gem 'letter_opener' end diff --git a/Gemfile.lock b/Gemfile.lock index 0c7f3e3d..0e3e9b9e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -160,6 +160,10 @@ GEM railties (>= 4.2.0) thor (>= 0.14, < 2.0) kramdown (1.16.2) + launchy (2.4.3) + addressable (~> 2.3) + letter_opener (1.6.0) + launchy (~> 2.2) liquid (4.0.0) listen (3.1.5) rb-fsevent (~> 0.9, >= 0.9.4) @@ -195,6 +199,8 @@ GEM method_source (~> 0.9.0) public_suffix (3.0.2) puma (3.11.4) + pundit (2.0.0) + activesupport (>= 3.0.0) rack (2.0.4) rack-test (1.0.0) rack (>= 1.0, < 3) @@ -324,10 +330,12 @@ DEPENDENCIES jbuilder (~> 2.5) jekyll jquery-rails + letter_opener listen (>= 3.0.5, < 3.2) mini_magick pry puma (~> 3.7) + pundit rails (~> 5.1.4) rails_warden rbnacl (< 5.0) diff --git a/config/environments/development.rb b/config/environments/development.rb index b7e11ef9..5d13e7a0 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -57,4 +57,9 @@ Rails.application.configure do config.ignore_processing_errors = false config.ignore_download_errors = false end + + config.action_mailer.perform_caching = false + config.action_mailer.delivery_method = :letter_opener + config.action_mailer.perform_deliveries = true + config.action_mailer.default_url_options = { host: 'localhost', port: 3000 } end