Project

wherelizer

0.0
No commit activity in last 3 years
No release in over 3 years
A gem for converting pre-arel ActiveRecord queries to their non-deprecated equivalents
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

wherelizer

Tool for converting pre-arel deprecated ActiveRecord queries into new-style ActiveRecord queries.

Easily available in website form at http://wherelizer.agileleague.com

Usage

require 'wherelizer'

Wherelizer.new( %q|Page.all(:conditions => {:content_id => 5, :name => "Cool"})| ).convert
=> "Page.where(content_id: 5).where(name: \"Cool\")"

Wherelizer.new( %q|@pages = @blog.pages.first(:conditions => {:content_id => 5, :name => "Cool"})|).convert
=> "@pages = @blog.pages.where(content_id: 5).where(name: \"Cool\").first"