Sha256: 895547a08f62330f58d93c33b489bbcdabea2c9ec02f0f6df86ffbfd0fd15797

Contents?: true

Size: 274 Bytes

Versions: 36

Compression:

Stored size: 274 Bytes

Contents

<% module_namespacing do -%>
class <%= filter_class_name %> < <%= parent_class_name %>
  include ::SearchObject.module #required
  
  # Add custom filter logic here
  # Ex:
  #   option(:search) { |scope, value| scope.where("username LIKE ?", "%#{value}%") }
end
<% end -%>

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
api_me-0.14.1 lib/generators/api_me/filter/templates/filter.rb
api_me-0.14.0 lib/generators/api_me/filter/templates/filter.rb
api_me-0.13.0 lib/generators/api_me/filter/templates/filter.rb
api_me-0.12.0 lib/generators/api_me/filter/templates/filter.rb
api_me-0.11.1 lib/generators/api_me/filter/templates/filter.rb
api_me-0.10.7 lib/generators/api_me/filter/templates/filter.rb
api_me-0.10.6 lib/generators/api_me/filter/templates/filter.rb
api_me-0.10.5 lib/generators/api_me/filter/templates/filter.rb
api_me-0.10.4 lib/generators/api_me/filter/templates/filter.rb
api_me-0.10.3 lib/generators/api_me/filter/templates/filter.rb
api_me-0.10.2 lib/generators/api_me/filter/templates/filter.rb
api_me-0.10.1 lib/generators/api_me/filter/templates/filter.rb
api_me-0.10.0 lib/generators/api_me/filter/templates/filter.rb
api_me-0.9.4 lib/generators/api_me/filter/templates/filter.rb
api_me-0.9.3 lib/generators/api_me/filter/templates/filter.rb
api_me-0.9.2 lib/generators/api_me/filter/templates/filter.rb
api_me-0.9.1 lib/generators/api_me/filter/templates/filter.rb
api_me-0.9.0 lib/generators/api_me/filter/templates/filter.rb
api_me-0.8.3 lib/generators/api_me/filter/templates/filter.rb
api_me-0.7.1 lib/generators/api_me/filter/templates/filter.rb