Sha256: 04555d9ee3b0bfae5e1ea8823f09a9ff831edd068ca93e9392f82e67f236689c
Contents?: true
Size: 365 Bytes
Versions: 12
Compression:
Stored size: 365 Bytes
Contents
module Admin class AdminController < ActionController::Base protect_from_forgery helper_method :allow? layout :ajax_request private def ajax_request request.xhr? ? "admin/ajax" : "admin/application" end ### TODO: Add your Authentication method here! def allow?(*args) true end end end
Version data entries
12 entries across 6 versions & 1 rubygems