Enter a deprecated ActiveRecord query and convert it. Paste the result into your code and watch your deprecation warnings melt away.


Here's a couple examples of a deprecated ActiveRecord query and what the wherelizer outputs. Note you can even leave in the variable assignment.

Page.all(:conditions => {:content_id => 5, :name => "Cool"})
        => Page.where(content_id: 5).where(name: "Cool")

@pages = @blog.pages.first(:conditions => {:content_id => my_id})
        => @pages = @blog.pages.where(content_id: my_id).first


Doesn't seem right? Let us know.


Sorry, we couldn't parse that query. Is it a valid pre-arel ActiveRecord query statement? If so, please feel free to let us know.