Sha256: 8733109cfe9c83519ff643833587898d5be2ac2e1c7b1eb3067205259786b864

Contents?: true

Size: 256 Bytes

Versions: 6

Compression:

Stored size: 256 Bytes

Contents

module ActionController # :nodoc:
  class Base
    # adding to ActionController::Base so it can overrided in ApplicationController
    def deny_access
      head :forbidden # better for action or record not allowed, according to RFC 7231
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
active_scaffold-4.0.2 lib/active_scaffold/extensions/action_controller_rescueing.rb
active_scaffold-4.0.1 lib/active_scaffold/extensions/action_controller_rescueing.rb
active_scaffold-4.0.0 lib/active_scaffold/extensions/action_controller_rescueing.rb
active_scaffold-4.0.0.rc3 lib/active_scaffold/extensions/action_controller_rescueing.rb
active_scaffold-4.0.0.rc2 lib/active_scaffold/extensions/action_controller_rescueing.rb
active_scaffold-4.0.0.rc1 lib/active_scaffold/extensions/action_controller_rescueing.rb