rails_admin_history_rollback 0.0.5 → 0.0.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ca15971d75e271b6ca79fb484e9e9b2a5786757
|
4
|
+
data.tar.gz: a337f1000d89ef156076f80bf36db96aa3e963d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fada86713c5b6a026775a26a44e19d4280beb9f9e601f6b913bcc7e6649af2eded1ee55643310772e497111213b8a23ce35e3750cea75f6a3bef20c022d0146
|
7
|
+
data.tar.gz: a8cb0c604586111cfe27450c11f77f5381abbe87cbec883e7c96fe8ac9085ac25e0cfc3acc517d852ede3dd9a01c8d5891c66fa6dc66b94dc8fc366511ab668b
|
@@ -8,3 +8,7 @@ en:
|
|
8
8
|
field: "Field"
|
9
9
|
rollback: "Rollback"
|
10
10
|
view_changes: "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."
|
@@ -46,15 +46,15 @@ module RailsAdmin
|
|
46
46
|
|
47
47
|
if @result
|
48
48
|
if @version.event == "create"
|
49
|
-
flash[:success] =
|
49
|
+
flash[:success] = t 'admin.history_rollback.rollback_destroy'
|
50
50
|
else
|
51
|
-
flash[:success] =
|
51
|
+
flash[:success] = t 'admin.history_rollback.rollback_success'
|
52
52
|
end
|
53
53
|
else
|
54
|
-
flash[:error] =
|
54
|
+
flash[:error] = t 'admin.history_rollback.rollback_impossible'
|
55
55
|
end
|
56
56
|
rescue ActiveRecord::RecordNotFound
|
57
|
-
flash[:error] =
|
57
|
+
flash[:error] = t 'admin.history_rollback.version_not_found'
|
58
58
|
redirect_to :action => :history_index
|
59
59
|
end
|
60
60
|
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rikki Pitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|