adherent 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b29d8528df12db718332171265a6d754d2a3b26
4
- data.tar.gz: 0353753b7acdacf51c0df287ad6dfd1a363486c7
3
+ metadata.gz: 35533b281243230c5493fd558e48b15bd487f83a
4
+ data.tar.gz: 7d2494fa3fe489b022ba235d68b547a6723faf73
5
5
  SHA512:
6
- metadata.gz: 0a1a9653e134225fca9188be266d377c12c48504e475e886e1ba0cde0cdda131ed9c2275f2e55971fc82dbb196e63d4bb86b9a62a8b9502134d6687f89f724ec
7
- data.tar.gz: de93d76ed685af67d41d2dbc56b26bf4bba1c4c97b46cf24a763351f0caa70d51f440c5ca76f638685b1547bf0060d19d7ef6116ac74d38964955fb7759b051f
6
+ metadata.gz: 3cf52055be83fcf4433105b50f4a3695563e3800d4d100dd03d72e9d0ad024f859f101daebaa91897e8b58a6172086a5c703d7e8a286d025b350ca8ab314a8fc
7
+ data.tar.gz: 86ecf19ce49c98e01bc1d53719b6861b03490310633f557d1f46257395fb747ec19c6a887a9d1def50b701494a1fe5a7e6e066c45b0faa74f1ff4912210b2159
@@ -9,6 +9,12 @@ class Adherent::ApplicationController < ApplicationController
9
9
  def dashed_date(date)
10
10
  I18n.l(date, format:'%d-%b-%Y').gsub('.', '')
11
11
  end
12
+
13
+ protected
14
+
15
+ def find_member
16
+ @member = @organism.members.find(params[:member_id])
17
+ end
12
18
 
13
19
  end
14
20
 
@@ -73,10 +73,6 @@ module Adherent
73
73
 
74
74
  protected
75
75
 
76
- def find_member
77
- @member = @organism.members.find(params[:member_id])
78
- end
79
-
80
76
  def coord_params
81
77
  params.require(:coord).permit(:address, :city, :gsm, :mail, :office, :references, :tel, :zip)
82
78
  end
@@ -17,5 +17,6 @@ module Adherent
17
17
  # VERSION = '0.2.8' # Insertion icone et action export csv xls pour members
18
18
  # VERSION = '0.2.9' # Mémorisation choix longueur liste des dataTables
19
19
  # VERSION = '0.3.0' # Passage à Rails 4.1
20
- VERSION = '0.3.1' # Modifications pour le passage de flc à noschema
20
+ # VERSION = '0.3.1' # Modifications pour le passage de flc à noschema
21
+ VERSION = '0.3.2' # find_member est maintenant défini dans ApplicationController
21
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adherent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Claude Lepage