.by_market works in vendor.rb