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

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

Instance Method Summary collapse

Instance Method Details

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



15
16
17
18
19
20
# File 'lib/redmineup/patches/compatibility/routing_mapper_patch.rb', line 15

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

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