Skip to content

Commit

Permalink
Update subscription.rb to throw abort on callback chain when false is…
Browse files Browse the repository at this point in the history
  • Loading branch information
yuenmichelle1 authored Aug 22, 2024
1 parent d06bfe5 commit dae01d3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ group :test, :development do
gem 'guard-rspec'
gem 'pry'
gem 'rspec-its'
gem 'rspec-rails'
gem 'rspec-rails', '~> 4.1.2'
gem 'spring-commands-rspec'
gem 'ten_years_rails'
gem 'timecop'
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ DEPENDENCIES
redis (~> 3.3.0)
restpack_serializer!
rspec-its
rspec-rails
rspec-rails (~> 4.1.2)
schema_plus_pg_indexes
sidekiq (< 6)
sidekiq-congestion (~> 0.1.0)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.next.lock
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ DEPENDENCIES
redis (~> 3.3.0)
restpack_serializer!
rspec-its
rspec-rails
rspec-rails (~> 4.1.2)
schema_plus_pg_indexes
sidekiq (< 6)
sidekiq-congestion (~> 0.1.0)
Expand Down
2 changes: 1 addition & 1 deletion app/models/subscription.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def preference
end

def ensure_enabled
preference.enabled?
throw(:abort) unless preference.enabled?
end

def enabled?
Expand Down

0 comments on commit dae01d3

Please sign in to comment.