diff --git a/.rubocop.yml b/.rubocop.yml index fc3cb7f..d4c6742 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,6 +1,9 @@ Rails: Enabled: true +Rails/ApplicationRecord: + Enabled: false + AllCops: TargetRubyVersion: 2.1 diff --git a/config/routes.rb b/config/routes.rb index 2bfcecb..820f221 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,7 @@ # Redmine Messenger plugin for Redmine RedmineApp::Application.routes.draw do - match 'projects/:id/messenger_settings/:action', controller: 'messenger_settings', via: %i[get post put patch] + match 'projects/:id/messenger_settings/save', + to: 'messenger_settings#save', + via: %i[post put patch] end