Sha256: 9ac4977566b5c04611fde765846f3360cd24427b3a540a0f6aeb3822a96388d1
Contents?: true
Size: 273 Bytes
Versions: 1
Compression:
Stored size: 273 Bytes
Contents
class ProtectedController < ApplicationController before_action :authenticate_user!, :require_admin_role! skip_before_filter :valid_site! layout :set_protected_layout def set_protected_layout Odania.protected.templates.keys.first || 'odania_core/protected' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
odania_core-0.0.7 | app/controllers/protected_controller.rb |