I’ve just released the first version of Redmine Simple Support. It is a Redmine plugin that makes it easy to link Redmine issues to external resources like a third party bug tracker or support system. Download The plugin can be download from the Little Stream Software project or from GitHub. Features Enter multiple support urls …
Tag: ruby
Redmine Kanban 0.2.0 released
I’ve just released Redmine Kanban 0.2.0. This release includes fixes for eight bugs and 19 new features. This version requires Redmine 0.9, which is the current stable version of Redmine. Download The plugin can be download from the Little Stream Software project or from GitHub. Changes Bug #2807: Check for the aasm gem eariler in …
17 Rack Middlewares I want to use
Since I’ve reviewed five different Rack middlewares this week, I thought it would be useful to list the other ones I’m interested in. Some are great for production deployments, some are great for development, and some are just plain silly. DbIndexes – shows the database indexes used by ActiveRecord on the page. OnlyForMe – simple …
Ruby’s Array splat operator (*array)
I’ve had some people tell me that they didn’t know about the splat operator in Ruby (*array) so here’s a quick example of how it’s used. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 >> array = [:a, :b, :c] [ [0] :a, [1] :b, …
Daily Refactor #81: Move last_invoice_number to Model
The Refactoring Today I used move method on the InvoiceController to move the #last_invoice_number to the Invoice model Before 1 2 3 4 5 6 7 8 class InvoiceController 'id DESC') unless last_invoice.nil? last_invoice.invoice_number else '-' end end endclass InvoiceController 'id DESC') unless last_invoice.nil? last_invoice.invoice_number else '-' end end end 1 2 3 class Invoice …