Sha256: 339192f34407522c1c8bf71ae2427bd8841e20bf1718ba9f762a0d23bbbea6af

Contents?: true

Size: 478 Bytes

Versions: 17

Compression:

Stored size: 478 Bytes

Contents

module Spree
  module Admin
    class PropertiesController < ResourceController

      # Looks like this action is unused
      def filtered
        @properties = Property.where('lower(name) LIKE ?', "%#{params[:q].mb_chars.downcase}%").order(:name)
        respond_with(@properties) do |format| 
          format.html { render :template => "spree/admin/properties/filtered", :formats => [:html], :handlers => [:erb], :layout => false } 
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
spree_core-1.2.5 app/controllers/spree/admin/properties_controller.rb
spree_core-1.1.6 app/controllers/spree/admin/properties_controller.rb
spree_core-1.1.5 app/controllers/spree/admin/properties_controller.rb
spree_core-1.2.4 app/controllers/spree/admin/properties_controller.rb
spree_core-1.2.3 app/controllers/spree/admin/properties_controller.rb
spree_core-1.2.2 app/controllers/spree/admin/properties_controller.rb
spree_core-1.1.4 app/controllers/spree/admin/properties_controller.rb
spree_core-1.2.0 app/controllers/spree/admin/properties_controller.rb
spree_core-1.2.0.rc2 app/controllers/spree/admin/properties_controller.rb
spree_core-1.2.0.rc1 app/controllers/spree/admin/properties_controller.rb
spree_core-1.1.3 app/controllers/spree/admin/properties_controller.rb
spree_core-1.1.2 app/controllers/spree/admin/properties_controller.rb
spree_core-1.1.2.rc1 app/controllers/spree/admin/properties_controller.rb
spree_core-1.1.1 app/controllers/spree/admin/properties_controller.rb
spree_core-1.1.0 app/controllers/spree/admin/properties_controller.rb
spree_core-1.1.0.rc2 app/controllers/spree/admin/properties_controller.rb
spree_core-1.1.0.rc1 app/controllers/spree/admin/properties_controller.rb