adherent 0.3.2 → 0.3.3

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
  SHA1:
3
- metadata.gz: 35533b281243230c5493fd558e48b15bd487f83a
4
- data.tar.gz: 7d2494fa3fe489b022ba235d68b547a6723faf73
3
+ metadata.gz: c10b39adb3e53322c51e06f6aed3a78907910cef
4
+ data.tar.gz: 6c7a1f578a8e32cb03a916826d67ce86f2e3b242
5
5
  SHA512:
6
- metadata.gz: 3cf52055be83fcf4433105b50f4a3695563e3800d4d100dd03d72e9d0ad024f859f101daebaa91897e8b58a6172086a5c703d7e8a286d025b350ca8ab314a8fc
7
- data.tar.gz: 86ecf19ce49c98e01bc1d53719b6861b03490310633f557d1f46257395fb747ec19c6a887a9d1def50b701494a1fe5a7e6e066c45b0faa74f1ff4912210b2159
6
+ metadata.gz: 5eccf29a1baf53e4964ffffe04311b1470bd695fcafc0a0d7b14d49a4cd658053aca541fa33ad613ff454e0d35d2c73c0c5c5b4b0bbf697919f3b19c0e646808
7
+ data.tar.gz: c69af157bc8063276b16b99ec35a94f4cf0e70360d293ab1ddcda86a58abc1eaecb289875c1619fc2b7ca8ca04b772c29ec1561bac3aac37d8e65f87a61b8a9d
@@ -10,11 +10,8 @@ class Adherent::ApplicationController < ApplicationController
10
10
  I18n.l(date, format:'%d-%b-%Y').gsub('.', '')
11
11
  end
12
12
 
13
- protected
14
13
 
15
- def find_member
16
- @member = @organism.members.find(params[:member_id])
17
- end
18
-
14
+
15
+
19
16
  end
20
17
 
@@ -73,6 +73,11 @@ 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
81
  def coord_params
77
82
  params.require(:coord).permit(:address, :city, :gsm, :mail, :office, :references, :tel, :zip)
78
83
  end
@@ -99,7 +99,11 @@ module Adherent
99
99
 
100
100
  private
101
101
 
102
- # Never trust parameters from the scary internet, only allow the white list through.
102
+ def find_member
103
+ @member = @organism.members.find(params[:id])
104
+ end
105
+
106
+ # Never trust parameters from the scary internet, only allow the white list through.
103
107
  def member_params
104
108
  params.require(:member).permit(:birthdate, :forname, :name, :number)
105
109
  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.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Claude Lepage