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 +8 -8
- data/CHANGELOG.md +5 -0
- data/app/models/user.rb +1 -1
- data/app/views/users/index.html.erb +1 -1
- data/lib/tasks/tkh_authentication_tasks.rake +2 -2
- data/lib/tkh_authentication/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTI1YWNhMzk1MmJkYTIwZjMzMWE0ZTFmMTg3OGE2NDMwMjEwZDUzNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTYwYjBjMDEwYThmNDZlYzkyNzA2ZTNjZDQ0ZmFkYTZlNzI4OTBiNg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjUzYTJmYmM2Mjc2YTMyMTJkYTBhNTYxMDcxNDZjZmM2OGU2M2VlZWU5MjYw
|
10
|
+
ODZiOTA0NGRkNmFmNDlmMGFjOGUwZDNhYzk3ZTAxNmEyMmVjMjE5MWFiNWI5
|
11
|
+
NGVhZDE0ZGJhODAyN2JhY2MwZDFhYTQ1OGUzNzVmNmRkODhlMjI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmI4NTZkODZiMTBmNmI5Njk2NzE5MmMxZmUzNGFlNTMwNTRjZGM2ODFjNmM0
|
14
|
+
Mzc3MTNhYjI3ZWM0NmE5NjM5OTQ0NmRkNTJlZDIwNjRlY2VmN2EzZDRiNWM3
|
15
|
+
N2U3ZjgyYTliMjAxMzc3YjdhZDQxYzIxNWY4MDFlODdmZTQ0NGE=
|
data/CHANGELOG.md
CHANGED
data/app/models/user.rb
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2013-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|