Sha256: 7368fc9d102e2d573c46e38d12b958f34732620bbfa5e8fcb62a2baff2433e80
Contents?: true
Size: 561 Bytes
Versions: 13
Compression:
Stored size: 561 Bytes
Contents
module Sso module ApplicationHelper # Can search for named routes directly in the main app, omitting # the "main_app." prefix def method_missing method, *args, &block if main_app_url_helper?(method) main_app.send(method, *args) else super end end def respond_to?(method) main_app_url_helper?(method) or super end private def main_app_url_helper?(method) (method.to_s.end_with?('_path') or method.to_s.end_with?('_url')) and main_app.respond_to?(method) end end end
Version data entries
13 entries across 13 versions & 1 rubygems