Class: Refinery::Retailers::RetailersController

Inherits:
ApplicationController
  • Object
show all
Includes:
ControllerHelper
Defined in:
app/controllers/refinery/retailers/retailers_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



9
10
11
# File 'app/controllers/refinery/retailers/retailers_controller.rb', line 9

def index
  @retailers = @retailers.group_by { |r| r.country_code }.sort_by{ |country_code, r| Carmen::Country.coded(country_code).name.parameterize }
end