Module: Redmineup::Patches::Compatibility::RoutingMapperPatch

Defined in:
lib/redmineup/patches/compatibility/routing_mapper_patch.rb

Instance Method Summary collapse

Instance Method Details

#constraints(options = {}, &block) ⇒ Object



5
6
7
8
9
10
# File 'lib/redmineup/patches/compatibility/routing_mapper_patch.rb', line 5

def constraints(options = {}, &block)
  return super(options, &block) unless options.is_a?(Hash)

  options[:object_type] = /.+/ if options[:object_type] && options[:object_type].is_a?(Regexp)
  super(options, &block)
end