Sha256: 28b75278d96d645dacdd09dee4bcf55e1d7b071761743b625a6a04af17531392

Contents?: true

Size: 178 Bytes

Versions: 6

Compression:

Stored size: 178 Bytes

Contents

# frozen_string_literal: true

class <%= class_name %>Filter < ::ApplicationFilter
<% keys.each do |key| %>
  filters :<%= key %> do |scope, value|
    scope
  end
<% end %>
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tiny_filter-0.3.1 lib/generators/tiny_filter/filter/templates/filter.rb.tt
tiny_filter-0.3.0 lib/generators/tiny_filter/filter/templates/filter.rb.tt
tiny_filter-0.2.1 lib/generators/tiny_filter/filter/templates/filter.rb.tt
tiny_filter-0.2.0 lib/generators/tiny_filter/filter/templates/filter.rb.tt
tiny_filter-0.1.1 lib/generators/tiny_filter/filter/templates/filter.rb.erb
tiny_filter-0.1.0 lib/tiny_filter/generators/tiny_filter/filter/templates/filter.rb.erb