tkh_mailing_list 0.9 → 0.9.1

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: 973df468855c7f282ac470dd0ffd8d15f0a2d136
4
- data.tar.gz: a5120dbaf52fc2c8794098f59c06a43dc25071b8
3
+ metadata.gz: c06d8c4952e038933330b519327e762d69928ddc
4
+ data.tar.gz: 6f2ba50a33c80e92c9cc46d636c1e5cad954e7f0
5
5
  SHA512:
6
- metadata.gz: 43f9420fb1c577ce32f422cd5588a76c4900fd0106c1fbbe99f6c1555c43be0cc936bfef52b07f7f6a6f9822b0e0c05f6f2fc6200bbfa2d1349b321855fdf92f
7
- data.tar.gz: 93714890e5f2d99cf3c9b04fffc7d63364628bf5cf7d8c22818cf3924e66e63a8a5fd98dc3521be15e4705ebcb8c805b883691154963cb6debe94306383d64b4
6
+ metadata.gz: e817171250dd2f288b8e4254200a6b9176c38aea3d592343880d30022bc41ffbc28115e7c5fe7ac5081d02c9a1659fc883b4bca2890a0f186a7310d2e6eea242
7
+ data.tar.gz: 87e0be80a34948bcdb28b109b896d5639af924666951066372994a37b9f63ec32fc38e99431bb97358a53b215f0ffe3285ed82b0e51696c5e3a7e24871cc80bd
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.9.1
6
+
7
+ * Added permissions to details protected attributes.
8
+
9
+
5
10
  ## 0.9
6
11
 
7
12
  * Upgraded gem to Rails 4
@@ -20,9 +20,6 @@ class DetailsController < ApplicationController
20
20
 
21
21
  def create
22
22
  @detail = Detail.new(detail_params)
23
- # this is needed or has_secure_password won't validate the saving of a record
24
- @detail.password = 'temporary'
25
- @detail.password_confirmation = 'temporary'
26
23
  if @detail.save
27
24
  redirect_to @detail, notice: t('details.create.notice')
28
25
  else
@@ -52,7 +49,7 @@ class DetailsController < ApplicationController
52
49
 
53
50
  # Never trust parameters from the scary internet, only allow the white list through.
54
51
  def detail_params
55
- params.require(:detail).permit(:admin, :teacher_status)
52
+ params.require(:detail).permit(:teacher_status, :first_name, :last_name, :other_name)
56
53
  end
57
54
 
58
55
  end
@@ -1,3 +1,3 @@
1
1
  module TkhMailingList
2
- VERSION = "0.9"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_mailing_list
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.9'
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swami Atma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-25 00:00:00.000000000 Z
11
+ date: 2014-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  requirements: []
108
108
  rubyforge_project:
109
- rubygems_version: 2.2.0
109
+ rubygems_version: 2.2.2
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: This gem inherits from the tkh_authentication gem and allow administrators