Skip to content

Instantly share code, notes, and snippets.

@shwoodard
Created June 19, 2009 23:57
Show Gist options
  • Save shwoodard/132955 to your computer and use it in GitHub Desktop.
Save shwoodard/132955 to your computer and use it in GitHub Desktop.
def public
@is_public = true
show
if current_user
if current_user.subscriber.community_subscriber.profile_accessibility == 1
redirect_to '/home' and return
end
if current_user.subscriber != current_subscriber
current_subscriber.community_subscriber.increment_internal_visits!
end
else
current_subscriber.community_subscriber.increment_external_visits!
end
render :action => 'show'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment