Sha256: 719bc5594fc502402cd26a7233996d4e7a50116836b68b062ed38e82ef7edcd2

Contents?: true

Size: 406 Bytes

Versions: 7

Compression:

Stored size: 406 Bytes

Contents

module HasFilter
  module Filter
  	class Tagged < Base
  	  self.priority = 2
  		self.scopes = [:tagged]
		
  		def to_form_fields(options = {})
  		  [query_tag]
  		end
		
  		def scope(target)
  		  target.tagged(selected)
  		end
		
  		protected
  		
  		  def query_tag
  		    view.text_field_tag(form_field_name(:tagged), selected, :id => form_field_id(:tagged, :query))
		    end
  	end
	end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
adva-0.1.4 vendor/gems/has_filter/lib/has_filter/filter/tagged.rb
adva-0.1.3 vendor/gems/has_filter/lib/has_filter/filter/tagged.rb
adva-0.1.2 vendor/gems/has_filter/lib/has_filter/filter/tagged.rb
adva-0.1.1 vendor/gems/has_filter/lib/has_filter/filter/tagged.rb
adva-0.1.0 vendor/gems/has_filter/lib/has_filter/filter/tagged.rb
adva_cms-0.0.1 vendor/gems/has_filter/lib/has_filter/filter/tagged.rb
adva-0.0.1 adva_cms/vendor/gems/has_filter/lib/has_filter/filter/tagged.rb