Sha256: deebb59c787375c7a086b7abaf8f70391b99f49af500bf0b28f5846242b24e95

Contents?: true

Size: 792 Bytes

Versions: 59

Compression:

Stored size: 792 Bytes

Contents

<!-- if the enforce_admin local is defined, then the proxy resource becomes the current_signed_in_resource, otherwise, it becomes the lookup_resource. -->


<!-- this partial is expected to be rendered in the context of a form object -->


<!-- a form_object local is also expected to be passed in, if its not passed in, then the namespace is assumed to be an empty string. -->

<% enforce_admin||= "no"
   namespace||= ""
 %>



<%= hidden_field_tag "proxy_resource_id", enforce_admin == "yes" ? current_signed_in_resource.id.to_s : lookup_resource.id.to_s, {:id => "#{namespace}_proxy_resource_id"} %>

<%= hidden_field_tag "proxy_resource_class", enforce_admin == "yes" ? current_signed_in_resource.class.to_s : lookup_resource.class.to_s, {:id => "#{namespace}_proxy_resource_class"} %>

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
wordjelly-auth-1.6.0 app/views/auth/shared/_proxy_resource.html.erb
wordjelly-auth-1.5.9 app/views/auth/shared/_proxy_resource.html.erb
wordjelly-auth-1.5.8 app/views/auth/shared/_proxy_resource.html.erb
wordjelly-auth-1.5.7 app/views/auth/shared/_proxy_resource.html.erb
wordjelly-auth-1.5.6 app/views/auth/shared/_proxy_resource.html.erb
wordjelly-auth-1.5.5 app/views/auth/shared/_proxy_resource.html.erb
wordjelly-auth-1.5.4 app/views/auth/shared/_proxy_resource.html.erb
wordjelly-auth-1.5.3 app/views/auth/shared/_proxy_resource.html.erb
wordjelly-auth-1.5.2 app/views/auth/shared/_proxy_resource.html.erb
wordjelly-auth-1.5.1 app/views/auth/shared/_proxy_resource.html.erb
wordjelly-auth-1.5.0 app/views/auth/shared/_proxy_resource.html.erb
wordjelly-auth-1.4.9 app/views/auth/shared/_proxy_resource.html.erb
wordjelly-auth-1.4.8 app/views/auth/shared/_proxy_resource.html.erb
wordjelly-auth-1.4.7 app/views/auth/shared/_proxy_resource.html.erb
wordjelly-auth-1.4.6 app/views/auth/shared/_proxy_resource.html.erb
wordjelly-auth-1.4.5 app/views/auth/shared/_proxy_resource.html.erb
wordjelly-auth-1.4.4 app/views/auth/shared/_proxy_resource.html.erb
wordjelly-auth-1.4.3 app/views/auth/shared/_proxy_resource.html.erb
wordjelly-auth-1.4.2 app/views/auth/shared/_proxy_resource.html.erb
wordjelly-auth-1.4.0 app/views/auth/shared/_proxy_resource.html.erb