Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto corrected by following Lint Ruby EmptyLine #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/helpers/switch_user_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def switch_user_select(options = {})

next unless selected_user.nil?
next if record.is_a?(SwitchUser::GuestRecord)

if provider.current_user?(record.user, record.scope)
selected_user = record.scope_id
end
Expand Down
1 change: 1 addition & 0 deletions lib/switch_user/rspec/feature_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def switch_user(user_record_or_scope, user_id = nil)
if identifier.nil?
raise SwitchUser::InvalidScope, "don't allow switch this user, please check config.available_users_identifiers"
end

user_record_or_scope.send identifier
else
user_id
Expand Down
1 change: 1 addition & 0 deletions spec/provider/devise_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class FakeWardenSessionSerializer

def store(user, scope)
return unless user

user_hash[scope] = user
end
end
Expand Down