```ruby
require 'redmine'

require 'update-custom-fields-commit/hooks'

Redmine::Plugin.register :update_custom_fields_on_commit do
  name 'Update custom fields upon commit'
  author 'Jon McManus'
  url 'http://github.com/jmcb/update-custom-fields-commit'
  author_url 'http://githu.com/jmcb'
  description 'Update specific custom fields, dependent on tracker, when closing an issue via commit.'
  version '0.1'

  requires_redmine :version_or_higher => '0.8.0'
end
```

Include the "default" settings and links properly.
user
```ruby
require 'redmine'

require 'update-custom-fields-commit/hooks'

Redmine::Plugin.register :update_custom_fields_on_commit do
  name 'Update custom fields upon commit'
  author 'Jon McManus'
  url 'http://github.com/jmcb/update-custom-fields-commit'
  author_url 'http://githu.com/jmcb'
  description 'Update specific custom fields, dependent on tracker, when closing an issue via commit.'
  settings :default => { 'fields' => 
                            {'tracker' => 0,
                             'custom_field' => 0,
                             'custom_value' => 0 },
                         'menu' => 'Commit-updated custom fields.' },
           :partial => 'settings/update_custom_fields_on_commit'

  version '0.1'

  requires_redmine :version_or_higher => '0.8.0'
end
```
assistant