Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 208
- Log:
First attempt at Gullery configured for the ROOL site. Unfroze the
Rails revision by deleting vendor/rails; Hub integration by a veneer
in the lib/authenticated_system.rb (Acts As Authenticated) plug-in,
plus some view changes and protection for the Account controller;
rewrote the default layout in .rhtml rather than .mab; plus the
usual set of configuration changes to work from a subdirectory and
with the ROOL database server.
- Author:
- rool
- Date:
- Sun May 20 19:12:33 +0100 2007
- Size:
- 1035 Bytes
1 | # Filters added to this controller will be run for all controllers in the application. |
2 | # Likewise, all the methods added will be available for all controllers. |
3 | class ApplicationController < ActionController::Base |
4 | # Hub single sign-on support. Run the Hub filters for all actions to |
5 | # ensure activity timeouts etc. work properly. Gullery accounts are |
6 | # only allowed for privileged Hub users. Gullery uses Acts As |
7 | # Authenticated itself - the distant parent of Hub itself - so all |
8 | # we do is put a wrapper around the AAA library code. |
9 | |
10 | require 'hub_sso_lib' |
11 | include HubSsoLib::Core |
12 | before_filter :hubssolib_beforehand |
13 | after_filter :hubssolib_afterwards |
14 | |
15 | # Gullery's standard preamble |
16 | |
17 | include AuthenticatedSystem |
18 | |
19 | helper_method :textilight, :textilize |
20 | |
21 | def textilight(text='') |
22 | r = RedCloth.new text |
23 | r.hard_breaks = false |
24 | r.to_html.gsub(/^<p>/, '').gsub(/<\/p>$/, '') |
25 | end |
26 | |
27 | def textilize(text='') |
28 | r = RedCloth.new text |
29 | r.hard_breaks = false |
30 | r.to_html.gsub(/^\s+/, '') |
31 | end |
32 | |
33 | end |