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

Version Path
devise_masquerade-0.6.4 lib/devise_masquerade/controllers/url_helpers.rb
devise_masquerade-0.6.3 lib/devise_masquerade/controllers/url_helpers.rb
devise_masquerade-0.6.2 lib/devise_masquerade/controllers/url_helpers.rb
devise_masquerade-0.6.1 lib/devise_masquerade/controllers/url_helpers.rb
devise_masquerade-0.6.0 lib/devise_masquerade/controllers/url_helpers.rb
devise_masquerade-0.5.3 lib/devise_masquerade/controllers/url_helpers.rb
devise_masquerade-0.5.2 lib/devise_masquerade/controllers/url_helpers.rb
devise_masquerade-0.5.1 lib/devise_masquerade/controllers/url_helpers.rb
devise_masquerade-0.5.0 lib/devise_masquerade/controllers/url_helpers.rb
devise_masquerade-0.4.0 lib/devise_masquerade/controllers/url_helpers.rb
devise_masquerade-0.3.1 lib/devise_masquerade/controllers/url_helpers.rb
devise_masquerade-0.3.0 lib/devise_masquerade/controllers/url_helpers.rb
devise_masquerade-0.2.0 lib/devise_masquerade/controllers/url_helpers.rb
devise_masquerade-0.1.8 lib/devise_masquerade/controllers/url_helpers.rb
devise_masquerade-0.1.7 lib/devise_masquerade/controllers/url_helpers.rb
devise_masquerade-0.1.6 lib/devise_masquerade/controllers/url_helpers.rb
devise_masquerade-0.1.5 lib/devise_masquerade/controllers/url_helpers.rb
devise_masquerade-0.1.4 lib/devise_masquerade/controllers/url_helpers.rb
devise_masquerade-0.1.3 lib/devise_masquerade/controllers/url_helpers.rb
devise_masquerade-0.1.2 lib/devise_masquerade/controllers/url_helpers.rb