paper_trail-rails 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/paper_trail/rails/console.rb +1 -1
- data/lib/paper_trail/rails/railtie.rb +7 -5
- data/lib/paper_trail/rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df6b12e02d1b44eabbb7c41961258e502db07a2b7f1078d48f72b56def92f948
|
4
|
+
data.tar.gz: d5eba93e47293263d99c743e280ca385d2773c5752eaff08090f5fbe0d023466
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33952094c64fd705018a4b33108c7e398ab5dc624449402e1a95cd4dc70a65544372e41906cb697b326b66fb7dc688c6ca2bfe35d82aecb7d8197a585358b064
|
7
|
+
data.tar.gz: b26c1c50f90b35dddf67291024beeacab8b4d37578f7450cb169f9c83d4794c455d66fadf6dd8d75ed9f9ad51dce589cb29b969818eaf5d6a5a1e71f410d8a97
|
@@ -50,7 +50,7 @@ module PaperTrail
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
class
|
53
|
+
class Railtie
|
54
54
|
initializer "paper_trail-rails.set_default_metadata" do |app|
|
55
55
|
# There's no way to set up deferred evaluation of PaperTrail.request.controller_info from
|
56
56
|
# here like we can with whodunnit, so abuse that property of PaperTrail.request.whodunnit to
|
@@ -1,12 +1,14 @@
|
|
1
|
-
# paper_trail gem also provides a Railtie (Engine) in this require. It seems to
|
2
|
-
# work to just add initializers to that existing Railtie. If needed, though, we
|
3
|
-
# could define a different one, like "Railtie".
|
4
1
|
require 'rails'
|
5
|
-
require 'paper_trail/frameworks/rails
|
2
|
+
require 'paper_trail/frameworks/rails'
|
6
3
|
|
7
4
|
module PaperTrail
|
8
5
|
module Rails
|
9
|
-
|
6
|
+
# lib/paper_trail/rails/console.rb adds an initializer to this Railtie.
|
7
|
+
#
|
8
|
+
# paper_trail gem also provides a Railtie, PaperTrail::Railtie
|
9
|
+
# (paper_trail/frameworks/rails/railtie.rb), but that is different from this one.
|
10
|
+
#
|
11
|
+
class Railtie < ::Rails::Railtie
|
10
12
|
end
|
11
13
|
end
|
12
14
|
end
|