Montag, 5. August 2013

Underused features of ActiveRecord

Today, we have finished the story of adding an areas filter for projects in the worker scope.

To paginate database results, voluntary uses the gem will_paginate. As we needed a pagination for a mongodb collection, we figured out that the last release is not compatible with mongoid.
But we found this unreleased feature which supports it, so we now temporarily have to use the edge version of the gem.

While refactoring Mathias showed me one of the underused features of ActiveRecord: scope merging.

At the end of the day I started a new story about creating a new product voluntary_classified_advertising following the steps for creating a new voluntary product (engine).

Tomorrow we will extend the core task through the new product to support vacancy allocation.

More things tomorrow!!!


Keine Kommentare:

Kommentar veröffentlichen