chore: rubocop
chore: fix api test conventions chore: rubocop -A spec/ chore: more rubocop -A fix failing test rubocop fixes removes helper methods that are in my opinion dead code more rubocop fixes rubocop -a --auto-gen-config
This commit is contained in:
parent
f6fb804bbe
commit
fb2b4d8a8a
331 changed files with 4263 additions and 4507 deletions
|
|
@ -2,7 +2,7 @@ module FoodsoftDiscourse
|
|||
module RedirectToLogin
|
||||
def self.included(base) # :nodoc:
|
||||
base.class_eval do
|
||||
alias foodsoft_discourse_orig_redirect_to_login redirect_to_login
|
||||
alias_method :foodsoft_discourse_orig_redirect_to_login, :redirect_to_login
|
||||
|
||||
def redirect_to_login(options = {})
|
||||
if FoodsoftDiscourse.enabled? && !FoodsoftConfig[:discourse_sso]
|
||||
|
|
@ -18,5 +18,5 @@ end
|
|||
|
||||
# modify existing helper
|
||||
ActiveSupport.on_load(:after_initialize) do
|
||||
Concerns::Auth.send :include, FoodsoftDiscourse::RedirectToLogin
|
||||
Concerns::Auth.include FoodsoftDiscourse::RedirectToLogin
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
module FoodsoftDiscourse
|
||||
VERSION = "0.0.1"
|
||||
VERSION = '0.0.1'
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue