#689 open
Betelgeuse

Don't add login_from_cookie before_filter if there are no User models

Reported by Betelgeuse | April 7th, 2010 @ 02:25 PM | in Hobo 1.4

I have a hobo application not using authentication so the login_from_cookie filter is failing when there is no Guest class around. I don't think the filter should be added if there's no hobo_user_model call.

NameError (uninitialized constant Guest):
  hobo (1.0.0) lib/hobo/hobo_helper.rb:23:in `current_user'
  hobo (1.0.0) lib/hobo/hobo_helper.rb:29:in `logged_in?'
  hobo (1.0.0) lib/hobo/authentication_support.rb:102:in `authenticated_user_from_cookie'
  hobo (1.0.0) lib/hobo/authentication_support.rb:93:in `login_from_cookie'

Comments and changes to this ticket

  • Matt Jones

    Matt Jones September 14th, 2011 @ 10:23 PM

    • State changed from “new” to “open”
    • Milestone set to Hobo 1.3 (Rails 3)
    • Milestone order changed from “0” to “0”
  • Matt Jones

    Matt Jones September 20th, 2011 @ 06:07 PM

    • Milestone changed from Hobo 1.3 (Rails 3) to Hobo 1.4
    • Milestone order changed from “12” to “0”

    Hmmm, a missing Guest seems to break a few other things. Will have to investigate this further.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Tags

Pages