Sha256: 46315aa484c7a041f95d1c8fd3862105ed85fe911f91ef0dfa2388c0414e8a77

Contents?: true

Size: 237 Bytes

Versions: 5

Compression:

Stored size: 237 Bytes

Contents

class CountriesController < Spree::BaseController
  resource_controller
  
  index.response do |wants|
    wants.html
    wants.js do
      @countries = Country.where('lower(name) LIKE ?', "%#{params[:q].downcase}%")
    end
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_core-0.40.4 app/controllers/countries_controller.rb
spree_core-0.40.3 app/controllers/countries_controller.rb
spree_core-0.40.2 app/controllers/countries_controller.rb
spree_core-0.40.1 app/controllers/countries_controller.rb
spree_core-0.40.0 app/controllers/countries_controller.rb