Sha256: aab1b11d4c8d0951b9bdbc28149c5e788b3ab4e89828a5d28e2f1fa015462ec3

Contents?: true

Size: 476 Bytes

Versions: 9

Compression:

Stored size: 476 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

9 entries across 9 versions & 2 rubygems

Version Path
spree_core-1.3.5 app/controllers/spree/admin/properties_controller.rb
spree_core-1.3.4 app/controllers/spree/admin/properties_controller.rb
spree_core-1.3.3 app/controllers/spree/admin/properties_controller.rb
spree_core-1.3.2 app/controllers/spree/admin/properties_controller.rb
spree_core-1.3.1 app/controllers/spree/admin/properties_controller.rb
spree_core-1.3.0 app/controllers/spree/admin/properties_controller.rb
spree_core-1.3.0.rc2 app/controllers/spree/admin/properties_controller.rb
dup_spree_core-1.3.0.rc1 app/controllers/spree/admin/properties_controller.rb
spree_core-1.3.0.rc1 app/controllers/spree/admin/properties_controller.rb