audit-log 0.2.1 → 0.3.0

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
  SHA256:
3
- metadata.gz: 3f683b75551b46a4dd5799d3699c235765c742d7f0e36e0d51fb3b8f06354e1b
4
- data.tar.gz: ccd650c70feeae9b584b5b566c95e5d7b4d1a7e1fb6496d20915cf7f9e1ebbfd
3
+ metadata.gz: 53d84b5630a7c9f749caa8d66d6f14de6bf98c8fd6341bb1abb552f3b9355cdc
4
+ data.tar.gz: 683b90bb6df772855a53e9d21c5c97f0e7ce5d12e7d933ff5931d6dd5caaeb1b
5
5
  SHA512:
6
- metadata.gz: 32954d87892042d6871f9b66e2b808270aef6a167c0d6fab63f85ec3a0de538047890e99d8cd3493486176e9eae89cac16e750ed3838b39dcd9190f41793789b
7
- data.tar.gz: 5f8e1a81880d4430bf07cb9af7c8acc5ff5caadcfcac63e5c8ffd87524c5c7cdb63ca204357ec318e40e1c7f7d4cb9f83ce3db69159d818f6aad2d584e215e2b
6
+ metadata.gz: a45f0115b7a154598ae5d92ae4ee34268d33757f7201f3fee155e41e084dde12016c7778b69cd1ba25597aacd47c87d1889b9cb977ca5c59e8996c130497298c
7
+ data.tar.gz: 6a032c5c485609ad6b85421d52b5ec3fce29bcf3d3218344a0121c26092ec94cb5904aa1af32b1eff093e9b453aa0a71e507a9b62972d1a5319a4d6410043e79
@@ -46,8 +46,8 @@ module AuditLog
46
46
  end
47
47
 
48
48
  # Get I18n action name options for select
49
- def action_options(locale: I18n.locale)
50
- I18n.backend.send(:translations)[locale][:audit_log][:action].map { |k, v| [v, k.to_s] }
49
+ def action_options
50
+ I18n.t("audit_log.action").map { |k, v| [v, k.to_s] }
51
51
  end
52
52
  end
53
53
  end
@@ -1,3 +1,3 @@
1
1
  module AuditLog
2
- VERSION = '0.2.1'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audit-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee