Sha256: 20e87ec23ca5215c79c59f415c292ea32d3575e24a8ae8b297e24163a668e00f
Contents?: true
Size: 623 Bytes
Versions: 3
Compression:
Stored size: 623 Bytes
Contents
module RailsAdserver class ApplicationController < ActionController::Base helper :all helper_method :_current_user, :_application_name, :_model_pool private def _model_pool RailsAdserver::Config.models_pool end def _application_name RailsAdserver::Config.application_name end def _current_user instance_eval &RailsAdserver::Config.current_user_method end def _authenticate if _current_user == nil redirect_to '/404.html' else unless _current_user.can_manage_ads redirect_to '/404.html' end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems