effective_memberships 0.2.4 → 0.2.5

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: b0eef9b0e1ee657cc1d68ba1bdadde44e3f89b8002889512a62f99ba77fba756
4
- data.tar.gz: 0a08d2d2352e7b6a1fa1bd67ae66b99706e278c85b08eee75ef3d2e4aae8eab6
3
+ metadata.gz: 5349de013b96f392cd5d9965a55fc8348656aed3a20b9c2798538454286368cd
4
+ data.tar.gz: 1f04f3dfd643b060a48919a00705255590439632fa4afd03925c0b1abe6ab324
5
5
  SHA512:
6
- metadata.gz: db209b01ffdbe5b9071e05b7df946c72454b8edfd19833e3cb393261beed6336c65345d7133e3da3406c190e16e87612f3064e412a7bc7023191be17cfbe2691
7
- data.tar.gz: f3dcfabe8a98ccae4109166398356127fb6a860d3896966681604f119fdd4b830870ae9a2f808c8fdd6a4a3be7bbbb0ba442bc8a2acb5b0e692921164f6a47a2
6
+ metadata.gz: 1a9056129fa56370cf1dd1b9324b1f2581f81b3952f801f3509e60d68de68da6c65c7cf3a898bfd525d9e4a5ad3b648088e2e5218ead9448288bd67a9daf783e
7
+ data.tar.gz: 0f75e5e23b53188eb83524190ad4fc7292bddb7af3faf349207074a3bc0b4da660ea41415392933c851843d1c57b1eafa43127fd3c6f9ac2dfeca5f43fe5f303
@@ -6,29 +6,5 @@ module Effective
6
6
 
7
7
  resource_scope -> { EffectiveMemberships.Applicant.deep.where(owner: current_user.effective_memberships_owners) }
8
8
 
9
- # Allow only 1 in-progress application at a time
10
- before_action(only: [:new, :show], unless: -> { resource&.done? }) do
11
- existing = resource_scope.in_progress.where.not(id: resource).first
12
-
13
- if existing.present?
14
- flash[:success] = "You have been redirected to your existing in progress application"
15
- redirect_to effective_memberships.applicant_build_path(existing, existing.next_step)
16
- end
17
- end
18
-
19
- after_save do
20
- flash.now[:success] = ''
21
- end
22
-
23
- private
24
-
25
- def permitted_params
26
- params.require(:applicant).permit!.except(
27
- :owner_id, :owner_type, :status, :status_steps, :wizard_steps,
28
- :submitted_at, :completed_at, :reviewed_at, :approved_at,
29
- :declined_at, :declined_reason, :created_at, :updated_at
30
- )
31
- end
32
-
33
9
  end
34
10
  end
@@ -6,27 +6,5 @@ module Effective
6
6
 
7
7
  resource_scope -> { EffectiveMemberships.FeePayment.deep.where(owner: current_user.effective_memberships_owners) }
8
8
 
9
- # Allow only 1 in-progress fee payment at a time
10
- before_action(only: [:new, :show], unless: -> { resource&.done? }) do
11
- existing = resource_scope.in_progress.where.not(id: resource).first
12
-
13
- if existing.present?
14
- flash[:success] = "You have been redirected to your existing in progress fee payment"
15
- redirect_to effective_memberships.fee_payment_build_path(existing, existing.next_step)
16
- end
17
- end
18
-
19
- after_save do
20
- flash.now[:success] = ''
21
- end
22
-
23
- private
24
-
25
- def permitted_params
26
- params.require(:fee_payment).permit!.except(
27
- :status, :status_steps, :wizard_steps, :submitted_at
28
- )
29
- end
30
-
31
9
  end
32
10
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveMemberships
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_memberships
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
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: 2022-01-28 00:00:00.000000000 Z
11
+ date: 2022-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails