phcdevworks_core 0.2.0 → 0.3.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: ce92e90e473f0afb58ea3a972db3e4d90d2d93e12020d7a85a658c6b63f1eef4
|
4
|
+
data.tar.gz: 010c33754f522dba8382689875ab3a5c69c453ffa9536ac0158c514d3ce69255
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb0c1e6d63660addfe455b2709871c3de860d96330402f994850e1a52f16e52d93ed5054adc1ddf2bd6b0c60302e25bade23b900bc674d682b7b034cc74af949
|
7
|
+
data.tar.gz: c35643f7686252a9dae120e566a1926c69c6623442b2cb702f50206526d50c6299fcbc6b412c6bb7ecd6b7e1f465e7e72e1c948d6d37a6b3ec374eefa19ed076
|
@@ -1,39 +1,39 @@
|
|
1
1
|
module PhcdevworksCore
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
# PHCDevworks - Accounts - Who Dunnit
|
12
|
-
def user_for_paper_trail
|
13
|
-
current_user ? current_user.username : 'Public user'
|
14
|
-
end
|
2
|
+
module PhcdevworksPluginsHelper
|
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
|
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
|
+
@perty_real_listings__all = Phcdevworksrealestate::Property::Listing.all
|
24
|
+
end
|
37
25
|
|
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
|
38
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: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.29.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.29.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: phcthemes_web_theme_pack
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|