Sha256: 1cc24af32bf8ae22d74607b0520cbef1b22d071329d049be0ecddb83e9a175b5

Contents?: true

Size: 332 Bytes

Versions: 2

Compression:

Stored size: 332 Bytes

Contents

class ActiveApplication::ResourceController < SimpleResource::BaseController
  defaults route_prefix: ""
  has_scope :page, default: 1

  def render_not_found
    render "active_application/public/404", status: :not_found, layout: false
  end

  rescue_from CanCan::AccessDenied do |exception|
    return render_not_found
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_application-0.3.1 app/controllers/active_application/resource_controller.rb
active_application-0.3.0 app/controllers/active_application/resource_controller.rb