Exception: SteelWheel::FilterNotImplementedError

Inherits:
Error
  • Object
show all
Defined in:
lib/steel_wheel.rb

Overview

rubocop:disable Style/Documentation

Instance Method Summary collapse

Constructor Details

#initialize(filter_name) ⇒ FilterNotImplementedError

Returns a new instance of FilterNotImplementedError.



24
25
26
27
28
29
30
31
32
33
34
# File 'lib/steel_wheel.rb', line 24

def initialize(filter_name)
  super("    Filter \#{filter_name} is not implemented\n\n    Example:\n    filter :\#{filter_name} do |scope, value|\n      scope.where(\#{filter_name}: value)\n    end\n\n  HEREDOC\nend\n")