> You should put the connection variable at the end and assign it ActiveRecord::Base.connection as default.

O it doesn't need to since ```@conn = ActiveRecord::Base.connection``` which I've updated to be the default connection in the helper method as per your comment above.