Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 173
- Log:
Updated to latest release of Beast according to the "getting started with
Beast" guide at:http://beast.caboo.se/forums/1/topics/381
This check-in includes frozen Edge Rails and has the beginnings of
configuration for the ROOL site included.
- Author:
- rool
- Date:
- Fri Mar 02 15:59:12 +0000 2007
- Size:
- 610 Bytes
1 | class ApplicationController < ActionController::Base |
2 | include ExceptionLoggable, BrowserFilters, AuthenticationSystem |
3 | session :session_key => '_beast_session_id' |
4 | |
5 | helper_method :current_user, :logged_in?, :admin?, :last_active |
6 | before_filter :login_by_token |
7 | |
8 | protected |
9 | def last_active |
10 | session[:last_active] ||= Time.now.utc |
11 | end |
12 | |
13 | def rescue_action(exception) |
14 | exception.is_a?(ActiveRecord::RecordInvalid) ? render_invalid_record(exception.record) : super |
15 | end |
16 | |
17 | def render_invalid_record(record) |
18 | render :action => (record.new_record? ? 'new' : 'edit') |
19 | end |
20 | end |