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