Skip to content

Commit

Permalink
fix: disable mailchimp integration
Browse files Browse the repository at this point in the history
  • Loading branch information
kugaevsky committed Apr 19, 2022
1 parent 2860a87 commit 2c3b84e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
28 changes: 14 additions & 14 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ GEM
awesome_print (1.9.2)
bcrypt (3.1.16)
bindex (0.8.1)
bootsnap (1.10.3)
bootsnap (1.11.1)
msgpack (~> 1.2)
builder (3.2.4)
byebug (11.1.3)
Expand All @@ -123,7 +123,7 @@ GEM
codecov (0.6.0)
simplecov (>= 0.15, < 0.22)
coderay (1.1.3)
concurrent-ruby (1.1.9)
concurrent-ruby (1.1.10)
connection_pool (2.2.5)
crack (0.4.5)
rexml
Expand Down Expand Up @@ -155,7 +155,7 @@ GEM
erubi (1.10.0)
excon (0.91.0)
execjs (2.8.1)
factory_bot (6.2.0)
factory_bot (6.2.1)
activesupport (>= 5.0.0)
factory_bot_rails (6.2.0)
factory_bot (~> 6.2.0)
Expand All @@ -168,7 +168,7 @@ GEM
faraday-net_http (2.0.1)
fast_jsonapi (1.5)
activesupport (>= 4.2)
ffaker (2.20.0)
ffaker (2.21.0)
ffi (1.15.5)
ffi-compiler (1.0.1)
ffi (>= 1.0.0)
Expand Down Expand Up @@ -249,7 +249,7 @@ GEM
llhttp-ffi (0.4.0)
ffi-compiler (~> 1.0)
rake (~> 13.0)
loofah (2.14.0)
loofah (2.16.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
Expand All @@ -270,7 +270,7 @@ GEM
mini_mime (1.1.2)
mini_portile2 (2.8.0)
minitest (5.15.0)
msgpack (1.4.5)
msgpack (1.5.1)
multi_json (1.15.0)
multi_xml (0.6.0)
multipart-post (2.1.1)
Expand All @@ -293,9 +293,9 @@ GEM
timeout
net-ssh (6.1.0)
netrc (0.11.0)
newrelic_rpm (8.5.0)
newrelic_rpm (8.6.0)
nio4r (2.5.8)
nokogiri (1.13.3)
nokogiri (1.13.4)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
oauth (0.5.8)
Expand Down Expand Up @@ -327,11 +327,11 @@ GEM
omniauth-vkontakte (1.6.0)
omniauth-oauth2 (>= 1.5, <= 1.6)
orm_adapter (0.5.0)
ox (2.14.9)
ox (2.14.11)
parallel (1.21.0)
parser (3.1.1.0)
ast (~> 2.4.1)
pg (1.3.3)
pg (1.3.5)
postrank-uri (1.0.24)
addressable (>= 2.4.0)
nokogiri (>= 1.8.0)
Expand All @@ -342,7 +342,7 @@ GEM
pry-rails (0.3.9)
pry (>= 0.10.4)
public_suffix (2.0.5)
puma (5.6.2)
puma (5.6.4)
nio4r (~> 2.0)
puma-rails (0.0.2)
puma
Expand Down Expand Up @@ -413,10 +413,10 @@ GEM
rspec-expectations (3.11.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-mocks (3.11.0)
rspec-mocks (3.11.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-rails (5.1.0)
rspec-rails (5.1.1)
actionpack (>= 5.2)
activesupport (>= 5.2)
railties (>= 5.2)
Expand Down Expand Up @@ -488,7 +488,7 @@ GEM
slim (4.1.0)
temple (>= 0.7.6, < 0.9)
tilt (>= 2.0.6, < 2.1)
slim-rails (3.3.0)
slim-rails (3.4.0)
actionpack (>= 3.1)
railties (>= 3.1)
slim (>= 3.0, < 5.0)
Expand Down
2 changes: 2 additions & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ def send_devise_notification(notification, *args)
end

def sync_with_mailchimp
# disabled
return nil
return nil if email.blank?
return unless Rails.env.production?

Expand Down

0 comments on commit 2c3b84e

Please sign in to comment.