phcdevworks_accounts 2.1.0 → 2.2.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: abc6079465bd7b0619b92ce0864f40b0429d652661443af5c6500b46700ae089
4
- data.tar.gz: f0258990ffa7a96b2c18679005e80bdb9dbc0c93e05311df83c2680683d748ec
3
+ metadata.gz: e82bb61ee080fe523381201e30431473d97d4fc51ff5befc6fd1a0cc8f81ac5e
4
+ data.tar.gz: 4d6d773cf1e3101da970ec3b63650d0585913e09ad9c7dd488c7f3e1107d107a
5
5
  SHA512:
6
- metadata.gz: 4601edd039e8a5045f3ce9bd66bf1c29831b3b6dc40a50c9a1d1c1fd33d3ad299de6ce138c770e25f1aff2d98874501cd700a6125eb1724d8f528e27baeeafe4
7
- data.tar.gz: f149e07318aebad67958add7b92413343bf95a084f4720279b31396e2fdf451b535ef75261ec70f1c7d2db288fa1fbc156e4ef30f03a2ba58b88b3f429b12a15
6
+ metadata.gz: b9e576364928c0e8713635f2d986cde3ca780aa6b925dfec8bdf1ff8411864d6ddfd3b70967f354b425c8d87d49e7912df2583d8f9195e23ebacb63d0d0f8c65
7
+ data.tar.gz: a60295a687133dbc3a9af33da3f8c59687b77130b5c0532158e4e205a1fccecae23bd726bbf24c74aafbf305e74e1eebc96e58e72505df5ec069e76398f34488
@@ -1,11 +1,11 @@
1
1
  require_dependency "phcdevworks_accounts/application_controller"
2
2
 
3
3
  module PhcdevworksAccounts
4
- class Account::DashboardController < ApplicationController
5
-
6
- # Dashboard
7
- def index
4
+ class Account::DashboardController < ApplicationController
5
+
6
+ # Dashboard
7
+ def index
8
+ end
9
+
8
10
  end
9
-
10
- end
11
11
  end
@@ -1,25 +1,25 @@
1
1
  module PhcdevworksAccounts
2
- class ApplicationController < ActionController::Base
2
+ class ApplicationController < ActionController::Base
3
+
4
+ # Devise Filter
5
+ before_action :phcdevworks_accounts_permitted_parameters, if: :devise_controller?
3
6
 
4
- # Devise Filter
5
- before_action :phcdevworks_accounts_permitted_parameters, if: :devise_controller?
7
+ # Security Filters
8
+ protect_from_forgery with: :exception
6
9
 
7
- # Security Filters
8
- protect_from_forgery with: :exception
10
+ # Load Requried Helper Files
11
+ helper PhcdevworksActiveMenus::Engine.helpers
12
+ helper PhcdevworksNotifications::Engine.helpers
13
+ helper PhcdevworksTitleseo::Engine.helpers
9
14
 
10
- # Load Requried Helper Files
11
- helper PhcdevworksActiveMenus::Engine.helpers
12
- helper PhcdevworksNotifications::Engine.helpers
13
- helper PhcdevworksTitleseo::Engine.helpers
15
+ private
14
16
 
15
- private
17
+ # Whitelist Additional Fields
18
+ def phcdevworks_accounts_permitted_parameters
19
+ added_attrs = [:username, :firstname, :lastname, :email, :terms_of_service, :password, :password_confirmation, :remember_me]
20
+ devise_parameter_sanitizer.permit :sign_up, keys: added_attrs
21
+ devise_parameter_sanitizer.permit :account_update, keys: added_attrs
22
+ end
16
23
 
17
- # Whitelist Additional Fields
18
- def phcdevworks_accounts_permitted_parameters
19
- added_attrs = [:username, :firstname, :lastname, :email, :terms_of_service, :password, :password_confirmation, :remember_me]
20
- devise_parameter_sanitizer.permit :sign_up, keys: added_attrs
21
- devise_parameter_sanitizer.permit :account_update, keys: added_attrs
22
24
  end
23
-
24
- end
25
25
  end
@@ -1,4 +1,4 @@
1
1
  module PhcdevworksAccounts
2
- module ApplicationHelper
3
- end
2
+ module ApplicationHelper
3
+ end
4
4
  end
@@ -2,8 +2,7 @@
2
2
  <span>
3
3
  <!-- -PHC- Footer Content - Left - Time in Production -->
4
4
  <i class="fab fa-osi font-weight-bolder"></i> 2012-<%= Time.now.year %> -
5
- <span class="font-weight-bold">PHC</span>Devworks Accounts -
6
- Engine v<%= Gem.loaded_specs["phcdevworks_accounts"].version.to_s %>
5
+ <span class="font-weight-bold">PHC</span>Devworks Accounts - Engine v<%= Gem.loaded_specs["phcdevworks_accounts"].version.to_s %>
7
6
  <!-- -PHC- Footer Content - Left - Time in Production -->
8
7
  </span>
9
8
  <!-- -PHC- Footer Content - Left -->
@@ -37,4 +37,4 @@
37
37
 
38
38
  </ul>
39
39
  <% end %>
40
- <!-- -PHC- Topbar - Navigation Main -->
40
+ <!-- -PHC- Topbar - Navigation Main -->
@@ -25,7 +25,7 @@
25
25
  <% end %>
26
26
  </li>
27
27
  <li>
28
- <%= link_to phcdevworks_accounts.destroy_user_session_path do %>
28
+ <%= link_to phcdevworks_accounts.destroy_user_session_path, method: :delete do %>
29
29
  <i class="fad fa-sign-out-alt"></i> Logout
30
30
  <% end %>
31
31
  </li>
@@ -8,7 +8,7 @@ PhcdevworksAccounts::Engine.routes.draw do
8
8
  }
9
9
 
10
10
  # User Dashboard
11
- get 'dashboard', to: 'accounts/dashboard#index'
11
+ get 'dashboard', to: 'account/dashboard#index'
12
12
 
13
13
  # Admin Routes
14
14
  get "admin_dashboard", to: "admin/accounts#index"
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksAccounts
2
- VERSION = "2.1.0"
2
+ VERSION = "2.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_accounts
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-12 00:00:00.000000000 Z
11
+ date: 2020-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails