phcpresspro 11.0.0 → 11.0.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a5ccaf5ad6f0d3f407bf148aa98a38259251504
|
4
|
+
data.tar.gz: ca862c9e0d2ebdab3ca2b2282e135842cbe691e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db66b397ca99a31499d9d70d943f3837b2790b51fe2c8e868812cd13177316ad0048f82cc64b92bd79b3bde497b2f675a4d6ba198d91b42f65d4b1db0ceaa25f
|
7
|
+
data.tar.gz: 141696c2f1cf794dbaeda7a11a1db95986ddea4eead78514b70d7f02150eaeb8ec13b634e96634fce09d098f89eab132faec9ca676480b00f773a9602e75d1ea
|
@@ -1,40 +1,15 @@
|
|
1
1
|
module Phcpresspro
|
2
2
|
class ApplicationController < ActionController::Base
|
3
3
|
|
4
|
-
# Load Helpers for PHCPress Widgets
|
5
|
-
before_action :phcpress_recent_posts
|
6
|
-
|
7
4
|
# Security Filters
|
8
5
|
protect_from_forgery with: :exception
|
9
6
|
|
10
|
-
#
|
11
|
-
|
12
|
-
unless current_user
|
13
|
-
params.permit!
|
14
|
-
session[:last_url] = request.get? ? url_for(params) : url_for
|
15
|
-
redirect_to new_login_url
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
def current_user
|
20
|
-
@_current_user ||= AuthRocket::Session.from_token(session[:ar_token]).try(:user)
|
21
|
-
end
|
22
|
-
helper_method :current_user
|
23
|
-
|
24
|
-
def new_login_url
|
25
|
-
ENV['AUTHROCKET_LOGIN_URL']
|
26
|
-
end
|
27
|
-
helper_method :new_login_url
|
28
|
-
|
29
|
-
# Grab Auth Member Information
|
30
|
-
def membership_info
|
31
|
-
AuthRocket::Membership.all(user_id: current_user.id).first
|
32
|
-
end
|
7
|
+
# Load Helpers for PHCPress Widgets
|
8
|
+
before_action :phcpress_recent_posts
|
33
9
|
|
34
10
|
# Load Helpers
|
35
11
|
helper Phctitleseo::Engine.helpers
|
36
12
|
helper Phcnotifi::Engine.helpers
|
37
|
-
helper Phcaccountspro::Engine.helpers
|
38
13
|
|
39
14
|
# PHCPress Widget Helpers
|
40
15
|
def phcpress_recent_posts
|
data/lib/phcpresspro/engine.rb
CHANGED
data/lib/phcpresspro/version.rb
CHANGED