session-check 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/session/check.rb +1 -15
- data/lib/session/check/engine.rb +16 -0
- data/lib/session/check/version.rb +1 -1
- metadata +2 -1
data/lib/session/check.rb
CHANGED
@@ -1,15 +1 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
module Session
|
4
|
-
module Check
|
5
|
-
class Engine < ::Rails::Engine
|
6
|
-
initializer "session-check.loader" do
|
7
|
-
ActiveSupport.on_load :action_controller do
|
8
|
-
helper SessionCheckHelper
|
9
|
-
helper_method :session_check
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
1
|
+
require_relative 'check/engine'
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'rails'
|
2
|
+
|
3
|
+
module Session
|
4
|
+
module Check
|
5
|
+
class Engine < ::Rails::Engine
|
6
|
+
initializer "session-check.loader" do
|
7
|
+
ActiveSupport.on_load :action_controller do
|
8
|
+
p "Loading session check..."
|
9
|
+
helper SessionCheckHelper
|
10
|
+
helper_method :session_check
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: session-check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -35,6 +35,7 @@ extensions: []
|
|
35
35
|
extra_rdoc_files: []
|
36
36
|
files:
|
37
37
|
- app/helpers/session_check_helper.rb
|
38
|
+
- lib/session/check/engine.rb
|
38
39
|
- lib/session/check/version.rb
|
39
40
|
- lib/session/check.rb
|
40
41
|
- config/routes.rb
|