rails_admin_history_rollback 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/locales/history_rollback.en.yml +1 -0
- data/config/locales/history_rollback.ru.yml +1 -0
- data/config/locales/history_rollback.zh_cn.yml +5 -0
- data/lib/rails_admin_history_rollback/config/actions/history_index.rb +2 -0
- data/lib/rails_admin_history_rollback/extensions/paper_trail/auditing_adapter.rb +0 -3
- data/lib/rails_admin_history_rollback/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad8e01d385fb4babfe7299bc0c4798a61380744e
|
4
|
+
data.tar.gz: 639f8de8cf6e082ca0ae3918d2b50480f07c54e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d335aba686497911a92e333a7a84a66f33408427ce7f7b0308c26499ce0dd53fe9e4518e2ce1b13cdb28cb4ed26be27463b5238731ffa3dc515aaaa094339dce
|
7
|
+
data.tar.gz: b36f963ac72e08ba4ed501b1773b025772793d40f32cdc1089e66c423ab893ac670a9a9d6942497eebecb5e245155c2143701b155ece63281009382b4e544908
|
@@ -12,3 +12,4 @@ en:
|
|
12
12
|
rollback_success: "Rolled back changes to this record."
|
13
13
|
rollback_impossible: "Couldn't rollback. Sorry."
|
14
14
|
version_not_found: "Version does not exist."
|
15
|
+
rollback_violates_foreign_key: "Couldn't rollback: this model links to another model, which doesn't exists."
|
@@ -12,3 +12,4 @@ ru:
|
|
12
12
|
rollback_success: "Изменения данной версии восстановлены."
|
13
13
|
rollback_impossible: "Невозможно восстановить. Извините."
|
14
14
|
version_not_found: "Данная версия не существует."
|
15
|
+
rollback_violates_foreign_key: "Невозможно восстановить: эта модель ссылается на другую модель, которой не существует."
|
@@ -8,3 +8,8 @@ zh_cn:
|
|
8
8
|
field: "字段"
|
9
9
|
rollback: "还原"
|
10
10
|
view_changes: "查看"
|
11
|
+
rollback_destroy: "Rolled back newly-created record by destroying it."
|
12
|
+
rollback_success: "Rolled back changes to this record."
|
13
|
+
rollback_impossible: "Couldn't rollback. Sorry."
|
14
|
+
version_not_found: "Version does not exist."
|
15
|
+
rollback_violates_foreign_key: "Couldn't rollback: this model links to another model, which doesn't exists."
|
@@ -56,6 +56,8 @@ module RailsAdmin
|
|
56
56
|
rescue ActiveRecord::RecordNotFound
|
57
57
|
flash[:error] = t 'admin.history_rollback.version_not_found'
|
58
58
|
redirect_to :action => :history_index
|
59
|
+
rescue ActiveRecord::InvalidForeignKey
|
60
|
+
flash[:error] = t 'admin.history_rollback.rollback_violates_foreign_key'
|
59
61
|
end
|
60
62
|
|
61
63
|
redirect_to :action => :history_index
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_admin_history_rollback
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rikki Pitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|