Sha256: a5d19501d3f8d89ee3b4795d9b516fb95bdc3a284f66d26a616e1c20abcb5347
Contents?: true
Size: 324 Bytes
Versions: 2
Compression:
Stored size: 324 Bytes
Contents
class SurveyAdmin::BaseController < ApplicationController layout 'survey_admin' before_filter :require_survey_admin private def require_survey_admin true #redirect_to login_url and return unless survey_admin? end def survey_admin? current_user && current_user.survey_admin? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
survey_says-0.0.2 | app/controllers/survey_admin/base_controller.rb |
survey_says-0.0.1 | app/controllers/survey_admin/base_controller.rb |