Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 341
- Log:
Lots of changes to Hub to make it Rails 2.3.11 compatible. This is being
checked in as one large changeset because it doesn't really split down into
smaller components without having something that doesn't function in the
intermediate steps.
- Author:
- rool
- Date:
- Sat Mar 19 19:11:39 +0000 2011
- Size:
- 2004 Bytes
- Properties:
- Property svn:mergeinfo is set
1 | ####################################################################### |
2 | # File: application_controller.rb # |
3 | # (C) Hipposoft 2006-2011 # |
4 | # # |
5 | # Purpose: Hub core. Does little other than manage the interface into # |
6 | # the DRb server via the Hub gem. # |
7 | # # |
8 | # Author: A.D.Hodgkinson # |
9 | # # |
10 | # History: 31-Jan-2011 (ADH): Comment header added; prior history # |
11 | # not recorded. # |
12 | ####################################################################### |
13 | |
14 | class ApplicationController < ActionController::Base |
15 | |
16 | protect_from_forgery # See ActionController::RequestForgeryProtection for details |
17 | filter_parameter_logging :password, :password_confirmation |
18 | |
19 | before_filter :set_email_host |
20 | |
21 | # Hub single sign-on support |
22 | |
23 | require 'hub_sso_lib' |
24 | include HubSsoLib::Core |
25 | |
26 | before_filter :hubssolib_beforehand |
27 | after_filter :hubssolib_afterwards |
28 | |
29 | private |
30 | |
31 | # Rather annoyingly, ActionMailer templates have no knowledge of the context |
32 | # in which they are invokved, unlike normal view templates. This is strange |
33 | # and, at least for Hub, unhelpful. We could insist that the system installer |
34 | # configures some static value for the default host for links, but that's a |
35 | # horrible kludge - once the application is running it always knows its host |
36 | # via the "request" object. |
37 | # |
38 | # This filter patches around this Rails hiccup by wasting a few CPU cycles on |
39 | # auto-setup of the e-mail host. |
40 | # |
41 | def set_email_host |
42 | unless ( ActionMailer::Base.default_url_options.has_key?( :host ) ) |
43 | ActionMailer::Base.default_url_options[ :host ] = request.host_with_port |
44 | end |
45 | end |
46 | end |