I have a Model with :birthday attribute and I want to filter out those dates by month specified in the form (ActiveAdmin's DSL :select).
This is an example of simple scope that extract only the month of birthday's date. Maybe can help:
scope :birthday_month, where('extract(month from birthday) = ?', Date.today.month)