RE: contesto

scusate do indentato male il codice… volevo dire:

class ApplicationController < ActionController::Base

def self.logged_actor=

session[:logged_actor]= actor if actor.kind_of? Actors::Actor

end

def self.logged_actor

session[:logged_actor] || Actors::Actor.find(Actors::Actor.GUEST_ID)

end
end

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs