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: ae53128e92337e40e584d1fd9cb291534d405f2186956bbb6b899ffdcb36b4ed
4
- data.tar.gz: c43fbf847ce50515a5882beab263babd95666d3c00f8fd7e0d21006f813cf50a
3
+ metadata.gz: 256b02a587318ccb6ec19083c90d196ae5daa94725cdbf173345816eaa6a5028
4
+ data.tar.gz: 22bb71a667cafbdc1e7ab676e601af789f09c55703a8a3b6cbb08b9e65e6276f
5
5
  SHA512:
6
- metadata.gz: e1df6d459ed2c55c7c3a2885580775fea2cb2b3d1d5f4042765a8c2c2afd12d3c3c0ce57cbfcdc50534cd3134a8bfe126719be27abab1605899e797130a3bd5c
7
- data.tar.gz: 179fabaf0863236c4738526ee41a8a98e1bb2a5b4a68eb3eaebbb8fb6c72d0c54c014b14ed7d484a7795c34a3691bc7a52bd7e382acdbc8df8b3823deafb2157
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
- 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
2
+ module PhcdevworksPluginsHelper
10
3
 
11
- # PHCDevworks - Accounts - Who Dunnit
12
- def user_for_paper_trail
13
- current_user ? current_user.username : 'Public user'
14
- end
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
- # 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
11
+ # PHCDevworks - Accounts - Who Dunnit
12
+ def user_for_paper_trail
13
+ current_user ? current_user.username : "Public user"
14
+ end
20
15
 
21
- # PHCDevworks - RealEstate - All Listings
22
- def phcdevworks_real_listings_all
23
- @perty_real_listings_all = Phcdevworksrealestate::Property::Listing.all
24
- end
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
- # 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
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
- end
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
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksCore
2
- VERSION = "3.0.0"
2
+ VERSION = "4.0.0"
3
3
  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: 3.0.0
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-02-27 00:00:00.000000000 Z
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