Project

General

Profile

« Previous | Next » 

Revision d7c67746

Added by Michael Moll almost 6 years ago

Fixes #19873 - Fix Style/MultilineIfModifier cop (#5705)

  • Refs #20891 - fix for new rubocop rules
  • Fixes #19873 - Fix Style/MultilineIfModifier cop

View differences:

app/helpers/users_helper.rb
end
def user_taxonomies_html_options(user)
{
:location => { :onchange => 'tfm.users.taxonomyAdded(this, "location")'},
:organization => { :onchange => 'tfm.users.taxonomyAdded(this, "organization")'}
} unless user.admin?
unless user.admin?
{
:location => { :onchange => 'tfm.users.taxonomyAdded(this, "location")'},
:organization => { :onchange => 'tfm.users.taxonomyAdded(this, "organization")'}
}
end
end
def mail_notification_query_builder(mail_notification, f)

Also available in: Unified diff