diff --git a/lib/datagrid/form_builder.rb b/lib/datagrid/form_builder.rb index 49e1d90..09c8b6a 100644 --- a/lib/datagrid/form_builder.rb +++ b/lib/datagrid/form_builder.rb @@ -205,7 +205,7 @@ def datagrid_get_filter(attribute_or_filter) return attribute_or_filter unless Utils.string_like?(attribute_or_filter) object.class.filter_by_name(attribute_or_filter) || - raise(Error, "Datagrid filter #{attribute_or_filter} not found") + raise(ArgumentError, "Datagrid filter #{attribute_or_filter} not found") end def add_html_classes(options, *classes) @@ -228,8 +228,5 @@ def render_partial(name, locals) def add_filter_options(filter, **options) { **filter.default_input_options, **filter.input_options, **options } end - - class Error < StandardError - end end end