Class: ActionController::Base

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

Instance Method Summary collapse

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