preact 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,6 +15,10 @@ Preact.configure do |config|
15
15
  # disable this if you want to only log manual events
16
16
  config.autolog = true
17
17
 
18
+ # specify controller#action items that you want to ignore and not log to Preact.
19
+ # default is to not log sessions#create beacuse if you're using Devise, we get that already
20
+ config.autolog_ignored_actions = ["sessions#create"]
21
+
18
22
  # disable in Rails non-production environments
19
23
  # uncomment this if you don't want to log development activities
20
24
  #config.disabled = !Rails.env.production?
data/lib/preact.rb CHANGED
@@ -41,8 +41,10 @@ module Preact
41
41
 
42
42
  # never log things if we're in Rails test environment
43
43
  configuration.disabled = true if ::Rails.env.test?
44
- elsif defined? ::Warden
45
- # not using rails, so try to use warden
44
+ end
45
+
46
+ if defined? ::Warden
47
+ # if we're using Warden (Devise), load those extensions
46
48
  require 'preact/warden'
47
49
  end
48
50
 
@@ -1,3 +1,3 @@
1
1
  module Preact
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: preact
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: