Sha256: e16d85c330307b54f21482663f1c9041a2b2534d4f0cffe7a9a4192f0c9dbdb2
Contents?: true
Size: 395 Bytes
Versions: 27
Compression:
Stored size: 395 Bytes
Contents
module DeviseMasquerade module Controllers module UrlHelpers def masquerade_path(resource) scope = Devise::Mapping.find_scope!(resource) send("#{scope}_masquerade_path", resource) end def back_masquerade_path(resource) scope = Devise::Mapping.find_scope!(resource) send("back_#{scope}_masquerade_index_path") end end end end
Version data entries
27 entries across 27 versions & 1 rubygems