Sha256: 6db7a690da957a58725af05172ff39f4add79845d8b513afab8fa4a3a4e91c03
Contents?: true
Size: 308 Bytes
Versions: 1
Compression:
Stored size: 308 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 back_masquerade_path end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
devise_masquerade-0.0.4 | lib/devise_masquerade/controllers/url_helpers.rb |