Sha256: 3847d5eb0e4f53d2ca46568343a9999e02c68b38ce11e5dca1047bba75b326ba

Contents?: true

Size: 268 Bytes

Versions: 5

Compression:

Stored size: 268 Bytes

Contents

class RubocopEntryFilenameFilter < Avo::Filters::TextFilter
  self.name = "FileName"

  def apply(_request, query, value)
    values = value.split(" ")

    values.each do |word|
      query = query.where("file_name ILIKE ?", "%#{word}%")
    end

    query
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_app_generator-0.3.6 after_templates/application/klueless/app/avo/filters/rubocop_entry_filename_filter.rb
rails_app_generator-0.3.5 after_templates/application/klueless/app/avo/filters/rubocop_entry_filename_filter.rb
rails_app_generator-0.3.4 after_templates/application/klueless/app/avo/filters/rubocop_entry_filename_filter.rb
rails_app_generator-0.3.3 after_templates/application/klueless/app/avo/filters/rubocop_entry_filename_filter.rb
rails_app_generator-0.3.2 after_templates/application/klueless/app/avo/filters/rubocop_entry_filename_filter.rb