Sha256: 92e3c7f8d3c2152eaa31cc8566fa8acd1a5f089fa1dbe6914c329957c874d340
Contents?: true
Size: 481 Bytes
Versions: 3
Compression:
Stored size: 481 Bytes
Contents
module RailsSettingsUi::RouteDelegator # delegate url helpers to another engine def method_missing(method, *args, &block) if engine_route_method?(method) send(RailsSettingsUi.engine_name).send(method, *args) else super end end def respond_to?(method) super || engine_route_method?(method) end private def engine_route_method?(method) method.to_s =~ /_(?:path|url)$/ && send(RailsSettingsUi.engine_name).respond_to?(method) end end
Version data entries
3 entries across 3 versions & 1 rubygems