preact 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/generators/preact_generator.rb +4 -0
- data/lib/preact.rb +4 -2
- data/lib/preact/version.rb +1 -1
- metadata +1 -1
@@ -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
|
-
|
45
|
-
|
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
|
|
data/lib/preact/version.rb
CHANGED