wbase 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/wbase/application_controller.rb +0 -12
- data/app/helpers/wbase/auth_helper.rb +2 -0
- data/lib/wbase/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93058dfc7fe55d4567598f9d71b07d613916cfd7
|
4
|
+
data.tar.gz: 5b3b13f7d3fec6f52b813a199ddd23555a1b3fc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a0b4554b710511f5a1b5887e027122d4b339eb48b70ad2b5aab7ff6362230738715c57eaaab337955b47a53def3a60b2deb423f722f0fa25349ca8f616c30e7
|
7
|
+
data.tar.gz: 28ab8b3e79c9720ca99d00dbef85dda560cc3770cf00fd790d2320cd8711d580c5411dcac0177d72516d26dd19b04b66388b49e30662042497f794006321f656
|
@@ -1,18 +1,6 @@
|
|
1
1
|
module Wbase
|
2
2
|
class ApplicationController < ActionController::Base
|
3
3
|
include AuthHelper
|
4
|
-
|
5
4
|
protect_from_forgery with: :exception
|
6
|
-
around_action :tag_logs_with_user_id
|
7
|
-
|
8
|
-
def tag_logs_with_user_id
|
9
|
-
tag = "user-anonymous"
|
10
|
-
if logged_in?
|
11
|
-
tag = "user-#{ current_user.id } #{ current_user.email }"
|
12
|
-
end
|
13
|
-
Rails.logger.tagged(tag) do
|
14
|
-
yield
|
15
|
-
end
|
16
|
-
end
|
17
5
|
end
|
18
6
|
end
|
data/lib/wbase/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wbase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CJ Avilla
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|