From 249798196514e1176edf8d8e3458d009c343ef8f Mon Sep 17 00:00:00 2001 From: Espen Antonsen Date: Tue, 23 Jun 2020 11:27:57 +0200 Subject: [PATCH] depend on railties and activerecord instead of entire rails --- action_access.gemspec | 3 ++- test/dummy/config/environment.rb | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/action_access.gemspec b/action_access.gemspec index 4a119e7..5c5bd03 100644 --- a/action_access.gemspec +++ b/action_access.gemspec @@ -17,7 +17,8 @@ Gem::Specification.new do |s| s.test_files = `git ls-files -- test/*`.split("\n") s.require_paths = ['lib'] - s.add_dependency 'rails', '>= 4.1' + s.add_dependency 'railties', '>= 4.1' + s.add_dependency 'activerecord', '>= 4.1' s.add_development_dependency 'sqlite3' s.add_development_dependency 'bundler', '>= 1.6' diff --git a/test/dummy/config/environment.rb b/test/dummy/config/environment.rb index 5a3f91f..d784bcc 100644 --- a/test/dummy/config/environment.rb +++ b/test/dummy/config/environment.rb @@ -30,9 +30,6 @@ class Application < Rails::Application # Disable request forgery protection in test environment. config.action_controller.allow_forgery_protection = false - # Tell Action Mailer not to deliver emails to the real world. - config.action_mailer.delivery_method = :test - # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr end