File tree 6 files changed +27
-22
lines changed
6 files changed +27
-22
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ gem "simple_form"
21
21
gem "title"
22
22
gem "uglifier"
23
23
gem "unicorn"
24
- gem "devise" , "~> 3.5.2 "
25
- gem "devise_invitable" , "~> 1.5.5"
24
+ gem "devise" , "~> 4.7.1 "
25
+ gem "devise_invitable"
26
26
gem "apartment" , "~> 0.26.0"
27
27
gem "pikaday-gem" , "~> 1.2.0.0"
28
28
gem "momentjs-rails"
Original file line number Diff line number Diff line change 589
589
aws-sigv4 (~> 1.0 )
590
590
aws-sigv2 (1.0.1 )
591
591
aws-sigv4 (1.0.2 )
592
- bcrypt (3.1.11 )
592
+ bcrypt (3.1.13 )
593
593
better_errors (2.5.1 )
594
594
coderay (>= 1.0.0 )
595
595
erubi (>= 1.0.0 )
@@ -645,16 +645,15 @@ GEM
645
645
delayed_job_active_record (4.0.3 )
646
646
activerecord (>= 3.0 , < 5.0 )
647
647
delayed_job (>= 3.0 , < 4.1 )
648
- devise (3.5.10 )
648
+ devise (4.7.1 )
649
649
bcrypt (~> 3.0 )
650
650
orm_adapter (~> 0.1 )
651
- railties (>= 3.2.6 , < 5 )
651
+ railties (>= 4.1.0 )
652
652
responders
653
- thread_safe (~> 0.1 )
654
653
warden (~> 1.2.3 )
655
- devise_invitable (1.5 .5 )
656
- actionmailer (>= 3.2.6 , < 5 )
657
- devise (>= 3.2 .0 )
654
+ devise_invitable (1.7 .5 )
655
+ actionmailer (>= 4.1.0 )
656
+ devise (>= 4.0 .0 )
658
657
diff-lcs (1.3 )
659
658
docile (1.1.5 )
660
659
dotenv (0.11.1 )
@@ -795,15 +794,15 @@ GEM
795
794
rake (>= 0.8.7 )
796
795
thor (>= 0.18.1 , < 2.0 )
797
796
raindrops (0.19.0 )
798
- rake (12.3.2 )
797
+ rake (13.0.1 )
799
798
rbtree3 (0.5.0 )
800
799
recipient_interceptor (0.1.2 )
801
800
mail
802
801
redcarpet (3.4.0 )
803
802
regexp_parser (1.6.0 )
804
- responders (2.4.0 )
805
- actionpack (>= 4.2.0 , < 5.3 )
806
- railties (>= 4.2.0 , < 5.3 )
803
+ responders (2.4.1 )
804
+ actionpack (>= 4.2.0 , < 6.0 )
805
+ railties (>= 4.2.0 , < 6.0 )
807
806
rspec-core (3.8.0 )
808
807
rspec-support (~> 3.8.0 )
809
808
rspec-expectations (3.8.2 )
@@ -912,8 +911,8 @@ DEPENDENCIES
912
911
dalli
913
912
database_cleaner
914
913
delayed_job_active_record (= 4.0.3 )
915
- devise (~> 3.5.2 )
916
- devise_invitable ( ~> 1.5.5 )
914
+ devise (~> 4.7.1 )
915
+ devise_invitable
917
916
dotenv-rails
918
917
email_spec
919
918
email_validator
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
class ApplicationController < ActionController ::Base
2
4
# Prevent CSRF attacks by raising an exception.
3
5
# For APIs, you may want to use :null_session instead.
@@ -10,8 +12,8 @@ class ApplicationController < ActionController::Base
10
12
protected
11
13
12
14
def configure_permitted_parameters
13
- devise_parameter_sanitizer . for ( :accept_invitation ) .
14
- concat ( [ : first_name, : last_name] )
15
+ devise_parameter_sanitizer . permit ( :accept_invitation ,
16
+ keys : %i[ first_name last_name ] )
15
17
end
16
18
17
19
def authenticate_inviter!
@@ -27,8 +29,10 @@ def after_invite_path_for(*)
27
29
helper_method :current_subdomain , :current_user_owner?
28
30
29
31
def current_subdomain
30
- @current_subdomain ||=
31
- current_account . subdomain unless Hours . single_tenant_mode?
32
+ unless Hours . single_tenant_mode?
33
+ @current_subdomain ||=
34
+ current_account . subdomain
35
+ end
32
36
end
33
37
34
38
def current_user_owner?
@@ -40,7 +44,7 @@ def current_account
40
44
end
41
45
42
46
def load_schema
43
- Apartment ::Tenant . switch ( " public" )
47
+ Apartment ::Tenant . switch ( ' public' )
44
48
return unless request . subdomain . present?
45
49
46
50
if current_account
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
include TimeSeriesInitializer
2
4
3
5
class UsersController < ApplicationController
Original file line number Diff line number Diff line change 34
34
%input#modal-1.modal-state{:type => " checkbox" }/
35
35
= render 'modal'
36
36
%li.devider
37
- %li= link_to t(" sign_out" ), destroy_user_session_path
37
+ %li= link_to t(" sign_out" ), destroy_user_session_path, method: :delete
Original file line number Diff line number Diff line change 269
269
# config.navigational_formats = ["*/*", :html]
270
270
271
271
# The default HTTP method used to sign out a resource. Default is :delete.
272
- # config.sign_out_via = :get
272
+ config . sign_out_via = :delete
273
273
274
274
# ==> OmniAuth
275
275
# Add a new OmniAuth provider. Check the wiki for more information on setting
You can’t perform that action at this time.
0 commit comments