phcmembers 0.9.6 → 0.9.7

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: 9b7ad1a53473467924c1581a9f7d2cfd42bbca26
4
- data.tar.gz: 0120f85366cdb545dc37cf32fd243d8f80565869
3
+ metadata.gz: f2975c4607ff1e9af0fc5033ce10ffbb466a340e
4
+ data.tar.gz: e0f46e6ee286c675a72c95e1cfa97ad42d012e3f
5
5
  SHA512:
6
- metadata.gz: 2073eb2d8ad73289b68166fc5931c5b0aa395d2f83851166b0ceafb0a17ccb46fef771769c73ede0baa5fa4213b38483e52500be0bac049623a828058ae4707c
7
- data.tar.gz: 93ac6054aad44852ca075536407a68495d83826d85bf658e60e6ce0d37bbeccbc8d031f3b36b367a2ebcb586695d8e3d3d6d95da6a7887d574dc8c7560b82b15
6
+ metadata.gz: 03fcfd07b63025f37d8ba61125915f9b0fd897c78392ccfa98aecd3462797d46d90638a6b85221c039f793ad955bfc16522217fa59338b74d472a4e72ea13833
7
+ data.tar.gz: 398b88ae94054f3de2d18d222282a64e55ba3a38d9461b034d60b8e2ec3c1cb3aec614247ca5cb2c1e621c235318073b90a39d1276c5cd12217abe07a5b69f9b
@@ -3,8 +3,7 @@ require_dependency "phcmembers/application_controller"
3
3
  module Phcmembers
4
4
  class Directory::CategoriesController < ApplicationController
5
5
 
6
- # Security & Action Filters
7
- # before_filter :authenticate_user!
6
+ # Filters
8
7
  layout 'layouts/phcmembers/directory/directory_all.html.erb'
9
8
  before_action :set_directory_category, only: [:edit, :update, :destroy]
10
9
 
@@ -3,8 +3,7 @@ require_dependency "phcmembers/application_controller"
3
3
  module Phcmembers
4
4
  class Directory::CatlistsController < ApplicationController
5
5
 
6
- # Security & Action Filters
7
- # before_filter :authenticate_user!
6
+ # Filters
8
7
  layout 'layouts/phcmembers/directory/directory_all.html.erb'
9
8
  before_action :set_directory_catlist, only: [:show, :edit, :update, :destroy]
10
9
 
@@ -3,8 +3,7 @@ require_dependency "phcmembers/application_controller"
3
3
  module Phcmembers
4
4
  class Members::ContactsController < ApplicationController
5
5
 
6
- # Security & Action Filters
7
- # before_filter :authenticate_user!
6
+ # Filters
8
7
  layout 'layouts/phcmembers/members/members_all.html.erb'
9
8
  before_action :set_members_contact, only: [:show, :edit, :update, :destroy]
10
9
 
@@ -3,8 +3,7 @@ require_dependency "phcmembers/application_controller"
3
3
  module Phcmembers
4
4
  class Members::ListingsController < ApplicationController
5
5
 
6
- # Security & Action Filters
7
- # before_filter :authenticate_user!
6
+ # Filters
8
7
  layout 'layouts/phcmembers/members/members_all.html.erb'
9
8
  before_action :set_members_listing, only: [:show, :edit, :update, :destroy]
10
9
 
@@ -3,8 +3,7 @@ require_dependency "phcmembers/application_controller"
3
3
  module Phcmembers
4
4
  class Members::MainsController < ApplicationController
5
5
 
6
- # Security & Action Filters
7
- # before_filter :authenticate_user!
6
+ # Filters
8
7
  layout 'layouts/phcmembers/members/members_all.html.erb'
9
8
  before_action :set_members_main, only: [:show, :edit, :update, :destroy]
10
9
 
@@ -1,11 +1,6 @@
1
1
  module Phcmembers
2
2
  class Directory::Category < ActiveRecord::Base
3
3
 
4
- # Mtdevise Scope
5
- def self.scoped_to(account)
6
- where(:account_id => account.id)
7
- end
8
-
9
4
  # Model Relationship
10
5
  has_many :catlists, class_name: 'Directory::Catlist'
11
6
 
@@ -1,10 +1,5 @@
1
1
  module Phcmembers
2
2
  class Directory::Catlist < ActiveRecord::Base
3
-
4
- # Mtdevise Scope
5
- def self.scoped_to(account)
6
- where(:account_id => account.id)
7
- end
8
3
 
9
4
  # Model Relationship
10
5
  belongs_to :category, class_name: 'Directory::Category'
@@ -1,11 +1,6 @@
1
1
  module Phcmembers
2
2
  class Members::Contact < ActiveRecord::Base
3
3
 
4
- # Mtdevise Scope
5
- def self.scoped_to(account)
6
- where(:account_id => account.id)
7
- end
8
-
9
4
  # Model Relationships
10
5
  belongs_to :main, class_name: 'Members::Main'
11
6
 
@@ -1,11 +1,6 @@
1
1
  module Phcmembers
2
2
  class Members::Listing < ActiveRecord::Base
3
3
 
4
- # Mtdevise Scope
5
- def self.scoped_to(account)
6
- where(:account_id => account.id)
7
- end
8
-
9
4
  # Model Relationships
10
5
  belongs_to :main, class_name: 'Members::Main'
11
6
  has_many :catlists, class_name: 'Directory::Catlist', dependent: :destroy
@@ -1,11 +1,6 @@
1
1
  module Phcmembers
2
2
  class Members::Main < ActiveRecord::Base
3
3
 
4
- # Mtdevise Scope
5
- def self.scoped_to(account)
6
- where(:account_id => account.id)
7
- end
8
-
9
4
  # Model Relationship
10
5
  has_many :listings, class_name: 'Members::Listing', dependent: :destroy
11
6
  has_many :contacts, class_name: 'Members::Contact', dependent: :destroy
data/config/routes.rb CHANGED
@@ -1,61 +1,28 @@
1
1
  Phcmembers::Engine.routes.draw do
2
2
 
3
- if defined?(Mtdevise)
4
- constraints(Mtdevise::Constraints::SubdomainRequired) do
5
-
6
- # Application Client Backend
7
- namespace :members do
8
-
9
- # Members Main Index
10
- root 'mains#index'
11
-
12
- # Member Routes
13
- resources :mains do
14
- resources :listings
15
- resources :contacts
16
- end
17
-
18
- end
19
-
20
- namespace :directory do
21
-
22
- # Directory Main Index
23
- root 'categories#index'
24
-
25
- # Directory Routes
26
- resources :categories do
27
- resources :catlists
28
- end
29
- end
3
+ # Application Client Backend
4
+ namespace :members do
5
+
6
+ # Members Main Index
7
+ root 'mains#index'
8
+
9
+ # Member Routes
10
+ resources :mains do
11
+ resources :listings
12
+ resources :contacts
30
13
  end
31
-
32
- else
33
-
34
- # Application Client Backend
35
- namespace :members do
36
-
37
- # Members Main Index
38
- root 'mains#index'
39
-
40
- # Member Routes
41
- resources :mains do
42
- resources :listings
43
- resources :contacts
44
- end
45
-
46
- end
47
-
48
- namespace :directory do
49
-
50
- # Directory Main Index
51
- root 'categories#index'
52
-
53
- # Directory Routes
54
- resources :categories do
55
- resources :catlists
56
- end
57
- end
58
14
 
59
15
  end
60
16
 
17
+ namespace :directory do
18
+
19
+ # Directory Main Index
20
+ root 'categories#index'
21
+
22
+ # Directory Routes
23
+ resources :categories do
24
+ resources :catlists
25
+ end
26
+ end
27
+
61
28
  end
@@ -1,3 +1,3 @@
1
1
  module Phcmembers
2
- VERSION = "0.9.6"
2
+ VERSION = "0.9.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcmembers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts