effective_events 0.20.5 → 0.20.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9b8633a6d61dfd2916934dff65ecbfe5df1ced40cfcff2ee4b49f2138ae2b30
4
- data.tar.gz: 8b843be43da82c2e4127e3a77ecb4fb2eb4f4f503743749e817375db9d3420e2
3
+ metadata.gz: fac59635c68fc7c14fdf1971a2a7b3cae0d2c5f2469e2c025d827b8d4c03428d
4
+ data.tar.gz: aa6ef8fa7bca306eedc5b4549c33561f08c384df90f7d57f7570f9d01b9a4919
5
5
  SHA512:
6
- metadata.gz: 3c65f032ed10d4164d1e774af03b9b491a50ea8b7016dc8337c9ccb8d76edb556f3483a6c15766f8a8492f05a3b072a96db56f7b857ac102d9adcb3d30467c24
7
- data.tar.gz: 7ad25cf506e1ea2867cbc47fdadecb0370d3cd7598c0424d34cb04d83ddc3f0a0acd0103fa9945341a0dc83eb2ec129113068a79e5dfb4a10387a6b33a76c7f8
6
+ metadata.gz: a3911304d324505f653a369436933f57190427be6555abe84c576dc2ca8adbec7687ae8b923fb68b70b901d147eaa57b40a5265c6d1f52f60331f2e268605d56
7
+ data.tar.gz: cfddf6a3d9282f1bc8b6380825d00c89c7ee486d24c193b2cefe0891846d3a5f9a821b2a8d11024c42c7a6d9eb94a8492ba8d0e6c694ad8bb31715616ec36dc0
@@ -23,7 +23,7 @@ module Effective
23
23
  return if resource.event.registerable? && !resource.event.sold_out?(except: resource)
24
24
 
25
25
  flash[:danger] = "Your selected event is no longer available for registration. This event registration is no longer available."
26
- return redirect_to('/dashboard')
26
+ return redirect_to(view_context.return_to_dashboard_path)
27
27
  end
28
28
 
29
29
  def expire_ticket_selection_window
@@ -45,7 +45,7 @@ module EffectiveEventsHelper
45
45
 
46
46
  # Allow an admin to assign archived tickets
47
47
  authorized = (namespace == :admin)
48
- member = current_user.try(:is_any?, :member)
48
+ member = current_user.try(:membership_present?)
49
49
 
50
50
  tickets = (authorized ? event.event_tickets : event.event_tickets.reject(&:archived?))
51
51
  tickets = tickets.reject { |ticket| ticket.member_only? } unless (authorized || member)
@@ -204,7 +204,7 @@ module Effective
204
204
  end
205
205
 
206
206
  def member_present?
207
- user.try(:is?, :member) || organization.try(:is?, :member)
207
+ user.try(:membership_present?) || organization.try(:membership_present?)
208
208
  end
209
209
 
210
210
  def member_ticket?
@@ -5,7 +5,7 @@
5
5
 
6
6
  - all_member_only_tickets = tickets.all? { |ticket| ticket.member_only? }
7
7
  - any_member_only_tickets = tickets.any? { |ticket| ticket.member_only? }
8
- - is_member = current_user.try(:is?, :member)
8
+ - is_member = current_user.try(:membership_present?)
9
9
 
10
10
  - if event.early_bird?
11
11
  .alert.alert-warning.mb-3
@@ -1,3 +1,3 @@
1
1
  module EffectiveEvents
2
- VERSION = '0.20.5'.freeze
2
+ VERSION = '0.20.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_events
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.5
4
+ version: 0.20.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-12 00:00:00.000000000 Z
11
+ date: 2024-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails