phcdevworks_core 3.0.0 → 4.0.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 256b02a587318ccb6ec19083c90d196ae5daa94725cdbf173345816eaa6a5028
|
4
|
+
data.tar.gz: 22bb71a667cafbdc1e7ab676e601af789f09c55703a8a3b6cbb08b9e65e6276f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 673103c6c1717030380ae34a18e1cf8a2ae2ba9dc8acdd4aea137bb9306a25b68d731aa0d7500f03a9e65d033845fdbf4e9bea06f5446d3d11ed936214810e79
|
7
|
+
data.tar.gz: d46e762c92f4ac0591efc4615ae4110276fa543220e4596e7fe4ae893bee327ba99659f451e2f728d9fc720e92e195b5487f7d98a4065f72a150460d9e7c2130
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module PhcdevworksCore
|
2
|
+
module PhcdevPluginsHelper
|
3
|
+
|
4
|
+
# PHCDev - Accounts - Add Admin Only Filter
|
5
|
+
def phcdevworks_accounts_admin_only
|
6
|
+
unless current_user && current_user.admin?
|
7
|
+
redirect_to main_app.root_path, :flash => { :error => "Sorry Access Denied. Adminisistration Access Required!" }
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
# PHCDev - Accounts - Who Dunnit
|
12
|
+
def user_for_paper_trail
|
13
|
+
current_user ? current_user.username : "Public user"
|
14
|
+
end
|
15
|
+
|
16
|
+
# PHCDev - Members - Grab Member Information
|
17
|
+
def phcmembers_get_member_profile_info
|
18
|
+
@members_profile_info = Phcmembers::Member::Profile.find(params[:profile_id])
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
@@ -1,39 +1,39 @@
|
|
1
1
|
module PhcdevworksCore
|
2
|
-
|
3
|
-
|
4
|
-
# PHCDevworks - Accounts - Add Admin Only Filter
|
5
|
-
def phcdevworks_accounts_admin_only
|
6
|
-
unless current_user && current_user.admin?
|
7
|
-
redirect_to main_app.root_path, :flash => { :error => "Sorry Access Denied. Adminisistration Access Required!" }
|
8
|
-
end
|
9
|
-
end
|
2
|
+
module PhcdevworksPluginsHelper
|
10
3
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
4
|
+
# PHCDevworks - Accounts - Add Admin Only Filter
|
5
|
+
def phcdevworks_accounts_admin_only
|
6
|
+
unless current_user && current_user.admin?
|
7
|
+
redirect_to main_app.root_path, :flash => { :error => "Sorry Access Denied. Adminisistration Access Required!" }
|
8
|
+
end
|
9
|
+
end
|
15
10
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
11
|
+
# PHCDevworks - Accounts - Who Dunnit
|
12
|
+
def user_for_paper_trail
|
13
|
+
current_user ? current_user.username : "Public user"
|
14
|
+
end
|
20
15
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
16
|
+
# PHCDevworks - Members - Grab Member Information
|
17
|
+
def phcmembers_get_member_profile_info
|
18
|
+
@members_profile_info = Phcdevworksmembers::Member::Profile.find(params[:profile_id])
|
19
|
+
end
|
25
20
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
"application"
|
31
|
-
when "index"
|
32
|
-
"phcdevworks_real_estate/property_list"
|
33
|
-
else
|
34
|
-
"application"
|
35
|
-
end
|
36
|
-
end
|
21
|
+
# PHCDevworks - RealEstate - All Listings
|
22
|
+
def phcdevworks_real_listings_all
|
23
|
+
@property_real_listings_all = Phcdevworksrealestate::Property::Listing.all
|
24
|
+
end
|
37
25
|
|
38
|
-
|
26
|
+
# PHCDevworks - RealEstate - Resolve Layouts
|
27
|
+
def resolve_property_listing_layouts
|
28
|
+
case action_name
|
29
|
+
when "new", "create"
|
30
|
+
"application"
|
31
|
+
when "index"
|
32
|
+
"phcdevworks_real_estate/property_list"
|
33
|
+
else
|
34
|
+
"application"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcdevworks_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- README.md
|
78
78
|
- Rakefile
|
79
79
|
- app/helpers/phcdevworks_core/application_helper.rb
|
80
|
+
- app/helpers/phcdevworks_core/phcdev_plugins_helper.rb
|
80
81
|
- app/helpers/phcdevworks_core/phcdevworks_plugins_helper.rb
|
81
82
|
- lib/phcdevworks_core.rb
|
82
83
|
- lib/phcdevworks_core/engine.rb
|