Sha256: 97dc5abf6287da0e5dca724d6562c81523d6eb5e5bba08083c7cf7096aa9452f
Contents?: true
Size: 575 Bytes
Versions: 6
Compression:
Stored size: 575 Bytes
Contents
Devise::Controllers::UrlHelpers.module_eval do [:path, :url].each do |path_or_url| [nil, :new_, :accept_].each do |action| class_eval <<-URL_HELPERS def #{action}invitation_#{path_or_url}(resource, *args) resource = case resource when Symbol, String resource when Class resource.name.underscore else resource.class.name.underscore end send("#{action}\#{resource}_invitation_#{path_or_url}", *args) end URL_HELPERS end end end
Version data entries
6 entries across 6 versions & 1 rubygems