Exception: SteelWheel::FilterNotImplementedError
- Defined in:
- lib/steel_wheel.rb
Overview
rubocop:disable Style/Documentation
Instance Method Summary collapse
-
#initialize(filter_name) ⇒ FilterNotImplementedError
constructor
A new instance of FilterNotImplementedError.
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(<<~HEREDOC) Filter #{filter_name} is not implemented Example: filter :#{filter_name} do |scope, value| scope.where(#{filter_name}: value) end HEREDOC end |