Sha256: eeba53cb3576ff81860056a7a204dcb7b34781be3f8e465fea77ec2077a48a55
Contents?: true
Size: 700 Bytes
Versions: 1
Compression:
Stored size: 700 Bytes
Contents
require_dependency 'login_system' ActionView::Base.field_error_proc = Proc.new do |html, instance| %{<div class="error-with-field">#{html} <small class="error">• #{[instance.error_message].flatten.first}</small></div>} end class ApplicationController < ActionController::Base include LoginSystem model :user observer :user_action_observer before_filter :set_current_user attr_accessor :config def initialize super @config = Radiant::Config end def default_parts (@config['default.parts'] || 'body, extended').strip.split(/\s*,\s*/) end private def set_current_user UserActionObserver.current_user = session[:user] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radiant-0.5.0 | app/controllers/application.rb |