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: 438ad739c6a4045162967ad36b9fe3e13575b49a
4
- data.tar.gz: 6a7d29af2776a53166d65a5cf273fe622d42a443
3
+ metadata.gz: 3ca15971d75e271b6ca79fb484e9e9b2a5786757
4
+ data.tar.gz: a337f1000d89ef156076f80bf36db96aa3e963d2
5
5
  SHA512:
6
- metadata.gz: 839d8d2eefa8dc27ca817fc0196917075ac0b143f15eabcbc02bd31540d510a206417964378f9ddb006403bed98e4a232fc2bc5fa769d47b6caaab503b983b62
7
- data.tar.gz: f1bdb02b451887a6a67b7356c66f60b9a1ce211375d9065413eb1d8ec11e7e25685804853dacb80d32ffe7bf0660c0bf932b4f8e524a837fc7e0d0e479a2b1c2
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] = "Rolled back newly-created record by destroying it."
49
+ flash[:success] = t 'admin.history_rollback.rollback_destroy'
50
50
  else
51
- flash[:success] = "Rolled back changes to this record."
51
+ flash[:success] = t 'admin.history_rollback.rollback_success'
52
52
  end
53
53
  else
54
- flash[:error] = "Couldn't rollback. Sorry."
54
+ flash[:error] = t 'admin.history_rollback.rollback_impossible'
55
55
  end
56
56
  rescue ActiveRecord::RecordNotFound
57
- flash[:error] = "Version does not exist."
57
+ flash[:error] = t 'admin.history_rollback.version_not_found'
58
58
  redirect_to :action => :history_index
59
59
  end
60
60
 
@@ -1,3 +1,3 @@
1
1
  module RailsAdminHistoryRollback
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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.5
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-06-21 00:00:00.000000000 Z
11
+ date: 2015-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails