I wanted to do a refactoring that I noticed while working on my redmine_lock_users plugin. Redmine tracks the User status with a single integer field and provides some constants to access them. The problem with this is that every other class has to know and use those constants to change a status. By using self …
Tag: ruby
Redmine Refactor #82: Extract Method to shoulda Macro in AccountControllerTest
I’m starting on my daily refactors again but this time I’m going to focus on the Redmine core codebase. With Redmine’s recent 1.0 release, I now have the flexibility to make some major changes to it’s internal code to get it ready for some new features. To start, I wanted to use extract method to …
Redmine Remove Membership 0.1.0 released
Last week I created another Redmine plugin to setup staging and testing servers with Redmine called Redmine Remove Membership. It’s a simple plugin that adds a Rake task to Redmine that will revoke the membership of a user from all projects. My client is using this on their staging server to quickly setup a limited …
Redmine Lock Users 0.1.0 released
This past week I created a plugin for one of my Redmine clients called Redmine Lock Users. It’s a simple plugin that adds a Rake task to Redmine to make it easy to lock all of the user accounts in the system. We have been using this to lock down testing and staging servers. Since …
Redmine Simple Support 0.1.1 released
A bug fix release for Redmine Simple Support has just been posted to my Redmine. This will fix a compatibility issue with the Redmine 0.9 releases. Download The plugin can be download from the Little Stream Software project or from GitHub. Features Compatibility With 9.0-Stable Branch Help If you need help, my Redmine bug tracker …