config/application.rb
# Initialize configuration defaults for originally generated Rails version.
Initialize configuration defaults for originally generated Rails version.
Initialize configuration defaults for originally generated Rails version .
def call(*args, &block)
      save_current_env = Thread.current["ss.env"]
      save_current_request = Thread.current["ss.request"]
      Thread.current["ss.env"] = args.first
      Thread.current["ss.request"] = nil
      super
    ensure
      Thread.current["ss.env"] = save_current_env
      Thread.current["ss.request"] = save_current_request
      Thread.current["ss.site"] = nil
      Thread.current["ss.user"] = nil
      Thread.current["ss.organization"] = nil
    end
def call ( * args , & block ) save_current_env = Thread . current [ "ss.env" ] save_current_request = Thread . current [ "ss.request" ] Thread . current [ "ss.env" ] = args . first Thread . current [ "ss.request" ] = nil super ensure Thread . current [ "ss.env" ] = save_current_env Thread . current [ "ss.request" ] = save_current_request Thread . current [ "ss.site" ] = nil Thread . current [ "ss.user" ] = nil Thread . current [ "ss.organization" ] = nil end
Initialize configuration defaults for originally generated Rails version.
Initialize configuration defaults for originally generated Rails version .
args
<not_specific>
block
<not_specific>