This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Call scopes directly from your URL params: | |
# | |
# @products = Product.filter(params.slice(:status, :location, :starts_with)) | |
module Filterable | |
extend ActiveSupport::Concern | |
module ClassMethods | |
# Call the class methods with names based on the keys in <tt>filtering_params</tt> | |
# with their associated values. For example, "{ status: 'delayed' }" would call |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#Sirius Scrapper is used to log the now playing information of a SIRIUS stream | |
#Copyright (C) Corey Ling | |
# | |
#This program is free software; you can redistribute it and/or | |
#modify it under the terms of the GNU General Public License | |
#as published by the Free Software Foundation; either version 2 | |
#of the License, or (at your option) any later version. | |
# | |
#This program is distributed in the hope that it will be useful, |