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( = {}, &block) return super(, &block) unless .is_a?(Hash) [:object_type] = /.+/ if [:object_type] && [:object_type].is_a?(Regexp) super(, &block) end |