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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7494b5ca88ddaadd1c89fccc2b2ee4686e20742f26b90cdbc4906e3e65c73d6
4
- data.tar.gz: d28e0112af2cc0bd2dfc63c51d6bfb861b306204d9134cc4d202d93cff4d90b1
3
+ metadata.gz: df6b12e02d1b44eabbb7c41961258e502db07a2b7f1078d48f72b56def92f948
4
+ data.tar.gz: d5eba93e47293263d99c743e280ca385d2773c5752eaff08090f5fbe0d023466
5
5
  SHA512:
6
- metadata.gz: 1a7b1296aa470f2e0ac6415f87a63c26fff354b902c7730a9e7a288dc1f40088fa4d9d5dfaf75c5ac75a7ddb2d58ea99e1fa75d450f0077d9a32cd515e0822ed
7
- data.tar.gz: 240a9d03c93ea377e3b614b16bfb15989542b2b89f6c08e356c03c71f1e6b5652017c7c18bdb1ecfa8420f4cc26a55dd10cdd7ea38fe60f4a39b23de73e50f85
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 Engine
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/engine'
2
+ require 'paper_trail/frameworks/rails'
6
3
 
7
4
  module PaperTrail
8
5
  module Rails
9
- class Engine
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
@@ -1,7 +1,7 @@
1
1
  module PaperTrail
2
2
  module Rails
3
3
  def self.version
4
- "0.5.0"
4
+ "0.5.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paper_trail-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Rick