Class: ActionController::Base

Inherits:
Object
  • Object
show all
Includes:
ActiveScaffold::ActionController
Defined in:
lib/active_scaffold/extensions/action_controller_rendering.rb,
lib/active_scaffold/extensions/action_controller_rescueing.rb

Instance Method Summary collapse

Methods included from ActiveScaffold::ActionController

#render

Instance Method Details

#deny_accessObject

adding to ActionController::Base so it can overrided in ApplicationController



4
5
6
# File 'lib/active_scaffold/extensions/action_controller_rescueing.rb', line 4

def deny_access
  head :forbidden # better for action or record not allowed, according to RFC 7231
end