Sha256: 3a018860d191e91131989a75b722d3063c280e20ddcfb49db164eca4fae54048
Contents?: true
Size: 602 Bytes
Versions: 26
Compression:
Stored size: 602 Bytes
Contents
class Smithy::BaseController < ApplicationController layout 'smithy/application' before_filter :authenticate_smithy_admin private def authenticate_smithy_admin unless smithy_current_user && smithy_current_user.smithy_admin? flash.alert = "Please login to continue." redirect_to smithy_login_path end end def filtered_params permitted_params.params_for controller_name.singularize end def permitted_params permitted_params ||= Smithy::PermittedParams.new(params, smithy_current_user) end helper_method :permitted_params end
Version data entries
26 entries across 26 versions & 1 rubygems