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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38b564f169c0b78e32b82ab4c49e0077427d385a
4
- data.tar.gz: d33778a0ea8ed7617b6c0350a0bbec630a4326cf
3
+ metadata.gz: 93058dfc7fe55d4567598f9d71b07d613916cfd7
4
+ data.tar.gz: 5b3b13f7d3fec6f52b813a199ddd23555a1b3fc7
5
5
  SHA512:
6
- metadata.gz: 6921ead3aec846ece6cf4c5f8e51a19c767405436cf77e702a4398f9bfca3542332bf52dcf7f17a1d927ae7cf0839e0d11a107bc8fb33e16b7a8fd856f4000fe
7
- data.tar.gz: 4d8bd3a81e197527fb11d2e81dea73e1e7e02b543907226a2c2434b325e7416356e65ee042bc4df5fe7c5b30452c9103a9389e2fa40bfa0f48f3bd74c218b683
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
@@ -2,6 +2,8 @@ require 'active_support/concern'
2
2
 
3
3
  module Wbase
4
4
  module AuthHelper
5
+ extend ActiveSupport::Concern
6
+
5
7
  def logged_in?
6
8
  !!current_user
7
9
  end
data/lib/wbase/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Wbase
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-03 00:00:00.000000000 Z
11
+ date: 2016-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails