app/builders/blacklight/action_builder.rb in blacklight-8.0.1 vs app/builders/blacklight/action_builder.rb in blacklight-8.1.0
- old
+ new
@@ -18,10 +18,10 @@
attr_reader :klass, :name, :opts
# Define a simple action handler for the tool as long as the method
# doesn't already exist or the `:define_method` option is not `false`
- def build
+ def build # rubocop:disable Metrics/MethodLength
return if skip?
callback = opts.fetch(:callback, nil).inspect
validator = opts.fetch(:validator, nil).inspect
klass.class_eval <<EORUBY, __FILE__, __LINE__ + 1