Trial to use repository pattern with Ruby on Rails.