Run rubocop --fix-layout and remove encoding comments
This commit is contained in:
parent
fa63e6e81d
commit
ea2862fdef
283 changed files with 1164 additions and 1969 deletions
|
|
@ -1,23 +1,19 @@
|
|||
module FoodsoftDiscourse
|
||||
|
||||
module RedirectToLogin
|
||||
def self.included(base) # :nodoc:
|
||||
base.class_eval do
|
||||
|
||||
alias foodsoft_discourse_orig_redirect_to_login redirect_to_login
|
||||
|
||||
def redirect_to_login(options={})
|
||||
def redirect_to_login(options = {})
|
||||
if FoodsoftDiscourse.enabled? && !FoodsoftConfig[:discourse_sso]
|
||||
redirect_to discourse_initiate_path
|
||||
else
|
||||
foodsoft_discourse_orig_redirect_to_login(options)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# modify existing helper
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue