tkh_authentication 0.1.9 → 0.1.10

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWE4ZGRhZDcyZDgyMTIzMjE3YWM4NGU5Mzk2NzQ5N2JhZDJmNjJkOA==
4
+ YTI1YWNhMzk1MmJkYTIwZjMzMWE0ZTFmMTg3OGE2NDMwMjEwZDUzNg==
5
5
  data.tar.gz: !binary |-
6
- MGY4YThhOTkwMzUwODFlMTU1NjQ2M2FmOGUzZGQ0N2NmOGNmNjQ2MA==
6
+ OTYwYjBjMDEwYThmNDZlYzkyNzA2ZTNjZDQ0ZmFkYTZlNzI4OTBiNg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZTI2ODhlYjY1Yzk2YmM3ZGVkNmQ2OGM2ZjExNzJlYWNhOWNkZmFmYThmZmQ2
10
- Y2JhNjI1NjA1OTI2ZjRhOTYyZDM1ZmFkMjBhZjg0NzU1NWQ1OWQ0NGZjOGUw
11
- YTFmZWQyZjExNGVhZGMxNWM2MWJiZTlkOTJjM2U2NmE0ZTEyNjg=
9
+ YjUzYTJmYmM2Mjc2YTMyMTJkYTBhNTYxMDcxNDZjZmM2OGU2M2VlZWU5MjYw
10
+ ODZiOTA0NGRkNmFmNDlmMGFjOGUwZDNhYzk3ZTAxNmEyMmVjMjE5MWFiNWI5
11
+ NGVhZDE0ZGJhODAyN2JhY2MwZDFhYTQ1OGUzNzVmNmRkODhlMjI=
12
12
  data.tar.gz: !binary |-
13
- NjZhMDlhNGJiOGY4MWEwNDgxYjUzZTg2NDM3YTNjOTVmZDI0ZWMyNDY2MTQz
14
- YzZkMDIwMWM0MmM1MDkwYjA2MTQ3MThhODg4NTM2MmJjNGM3ZWQzNTY3NTc5
15
- NWI4ZDkyOTNlOTRiZjVlZjE3NTU2NWNkYjMxNDJiZDEyYWFiNjI=
13
+ YmI4NTZkODZiMTBmNmI5Njk2NzE5MmMxZmUzNGFlNTMwNTRjZGM2ODFjNmM0
14
+ Mzc3MTNhYjI3ZWM0NmE5NjM5OTQ0NmRkNTJlZDIwNjRlY2VmN2EzZDRiNWM3
15
+ N2U3ZjgyYTliMjAxMzc3YjdhZDQxYzIxNWY4MDFlODdmZTQ0NGE=
@@ -1,6 +1,11 @@
1
1
  # TKH Authentication
2
2
 
3
3
 
4
+ ## 0.1.10
5
+
6
+ * Debugged the user has comments dependent destroy bug
7
+ * Added a user delete button to the index view. Connected with tkh_mailing_list gem details controller.
8
+
4
9
 
5
10
  ## 0.1.9
6
11
 
@@ -4,7 +4,7 @@ class User < ActiveRecord::Base
4
4
 
5
5
  # associations connected to tkh_content gem. Any page or comment model will do
6
6
  has_many :pages
7
- has_many :comments, :dependent => :destroy
7
+ has_many :comments, :dependent => :destroy, foreign_key: 'author_id'
8
8
 
9
9
  # not allowed are :admin:boolean, :auth_token:string, password_reset_token:string, password_reset_sent_at:datetime
10
10
  attr_accessible :email, :password, :password_confirmation, :first_name, :last_name, :other_name
@@ -24,7 +24,7 @@
24
24
  <span class="label label-success">✓</span> <%= link_to t('authentication.disable_admin'), remove_admin_user_path(user), class: 'btn btn-mini', method: :post %>
25
25
  <% end -%>
26
26
  </td>
27
- <td><%= link_to t('edit'), edit_detail_path(user), class: 'btn btn-mini' %></td>
27
+ <td><%= link_to t('edit'), edit_detail_path(user), class: 'btn btn-mini' %><%= link_to t('delete'), Detail.find(user.id), method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-mini btn-danger' %></td>
28
28
  </tr>
29
29
  <% end %>
30
30
  </tbody>
@@ -4,10 +4,10 @@ namespace :tkh_authentication do
4
4
  system 'rails g tkh_authentication:create_or_update_migrations'
5
5
  system 'rails g tkh_authentication:create_or_update_locales -f'
6
6
  end
7
-
7
+
8
8
  desc "Update files. Skip existing migrations. Force overwrite locales"
9
9
  task :update do
10
10
  system 'rails g tkh_authentication:create_or_update_migrations -s'
11
11
  system 'rails g tkh_authentication:create_or_update_locales -f'
12
12
  end
13
- end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module TkhAuthentication
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_authentication
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swami Atma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-03 00:00:00.000000000 Z
11
+ date: 2013-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails